12-Amethyst
November 21, 2022
Solved
Unable to use JSON.stringify() on a JSON
- November 21, 2022
- 2 replies
- 5798 views
When trying to use JSON.stringify(), I'm getting the below error:
ERROR:: Can't find method com.thingworx.types.primitives.structs.Location.toJSON(string)
Already validated that the format of the JSON I'm trying to stringify is correct using online json validator.
Please find the JSON I'm trying to stringify attached. At the end of the file you can find the Location property, which when removed, stringify() is working fine. I'm not able to understand why it's not working if the format is correct. 😕
Any help is greatly appreciated 🙂

