question

Upvotes
Accepted
27 8 13 13

JSON format Java EMA API

Hi

I am using Java EMA API but the output data is not JSON. I know, Websocket API outputs data in JSON format. Is there any way to output the data in JSON format using Java EMA API?

Thanks

Dhruv

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apijson-payload
dataformat.png (34.4 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
17.2k 82 39 63

Hi @dhruv.arora,

I believe you already saw this response regarding this question. In short, if you want to get JSON messages directly from the server, you will have to use the WebSocket capability. You can still use Java as the WebSocket service is language agnostic. Otherwise, you will need to create your own conversion utility to map incoming OMM messages into JSON.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.