Critical Issue - Faulty JSON response from Thomson Reuters Server for getProfile API call

We are getting Faulty JSON response from Thomson Reuters Server for getProfile API call. In postman for PRETTY format, the response looks correct but when we see in RAW format it is adding additional key-value pairs which are not a valid JSON. So we could not parse the response using our Salesforce APEX APIs. Please see the attached screenshots

Pretty format in Postman

image

Raw format in Postman(see the highlighted)

image


Best Answer

  • chris.haroian
    Answer ✓

    Hi @baskaran.subramanian

    We haven’t seen this reported as an error likely because the ECMA-262 spec for JSON.parse() explicitly says In the case where there are duplicate name Strings within an object, lexically preceding values for the same key shall be overwritten (in other words last-value-wins).

    --Chris

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.