Skip to main content
16-Pearl
August 27, 2024
Solved

Unable to parse JSON with @odata.count in the response received from Windchill

  • August 27, 2024
  • 1 reply
  • 1168 views

Hello All,

 

I am trying to read the count of object returned by WRS in ThingWorx/Navigate service. The count information is captured by "@odata.count" key in the WRS response. 

 

Windchill Response:

WNC Response.png

  

From ThingWorx service, if I use dot (.) to read json key values. In case of @odata.count, ThingWorx composer is throwing syntax error. 

TWX Composer .jpg

 

Any idea how to read JSON key values having @ in the key name?

 

Thanks in advance!

 

- Shirish

Best answer by ShirishMorkhade_238755

Nevermind, I am able to make it work by adding double quotes ( " ).

 

- Shirish

1 reply

16-Pearl
August 27, 2024

Nevermind, I am able to make it work by adding double quotes ( " ).

 

- Shirish