Forum Discussion
The original response is a json array from which I extract a parameter "result" that contains an array of strings.
Indeed "result" is not a json array ... I should then use another way to extract data, such as tokenize, I guess ?
**bleep**. jSonSlurper makes it, usually ...
Hello,
I have further questions about this. If my list of element contains json objects that also contain commas, if I do tokenize, I will end up stplitting all of it. Is there a way to tokenize a string but only on particular separators, ie.
I have a string "[{object1},{object2},...,{objectn}]"
if objects contain ',' which is usually the case for json objects, how can I do to obtain this string in the form of a collection so that when I do myList.each{println it} I have
{object1}
{object2}
...
{objectn}
as a result ?
Sample data of {object} please?
In case if the each object looks like as shown in the picture, then you can read as shown there
- It appars this and below thread are related
https://community.smartbear.com/t5/API-Functional-Security-Testing/decoding-a-string-that-contains-a-json-that-contains-an-array/m-p/216927#M48839
If so, can this be closed as well?