question

Upvotes
Accepted
16 1 2 4

TRTH2 Extractions requiring ordered JSON object in body

https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRaw

while sending the above request TRTH2 expects the request body to be an ordered Json object which is non conforming to the json libraries.

Is there an alternative which can be used apart from having a local customized json library ?

tick-history-rest-apijson
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.

Hello @Arvind Kaushik

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Hi @Arvind Kaushik.

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
13.7k 26 8 12

Currently it is necessary for the @odata.type (if included in the request) to be the first property in the object. The benefit of having it first is that it allows us to optimize the performance of our JSON serializer.

How you achieve this depends on the programming language you use, but in some cases it does require using specific JSON libraries or objects. That is what we do in our Java samples, which use a JSONOrderedObject.

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.