Forum Discussion
Unfortunately, it gives me the following when I try that. It seems to somehow interpret it as a list.
“error”:
“Expecting a string argument”
j_angelevski
4 years agoContributor III
Most likely the JSON.parse() method recieved an array instead of string.
If your content it’s always on the same index in your entry array, you can use the following expression
JSON.parse($entity.feed.entry[2].content['$'])
or
JSON.parse(jsonPath($, "entity.feed.entry[*].content['$']").toString())
Related Content
- 4 months ago
- 10 months ago
- 10 months ago
- 2 years ago
- 2 years ago