Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi team
I am able to obtain the JSON response as part of an API GET request via postman.
I am using the same headers in tREST as well as tRESTClient components, I am getting the status code as 200 but the body, I am not getting as JSON format instead I am getting in some decoded format or something.
How to resolve this issue and how to obtain the response in exact JSON format.
Thanks
DBS
I think the actual data isn't in the right JSON format like you expected. This could be because of how the data is being encoded or sent back from the API. To fix this, check the headers you're sending with your request to make sure they match what the API expects. Specifically, look at the "Content-Type" header and make sure it says "application/json". This tells the API you want the data in JSON format. If it still doesn't work, take a closer look at the response body itself to see if there are any strange characters or codes that might need to be decoded or handled differently. Adjusting these settings should help you get the API response in the correct JSON format and it works on every other app as well, like you can also implement it on some streaming platforms like Netflix and DixMax app. Hope this works.