12-Amethyst
Nov 21, 2022 5:53 AM UTC
Solved
Unable to use JSON.stringify() on a JSON
- 4 replies
- 5852 views
- Translate All
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 🙂

