Hi,
I am trying to make an API call and need query results in the request body. I am finding it difficult to convert the result into a JSON body. Any help is appreciated. Thank you.
Solved! Go to Solution.
Views
Replies
Total Likes
I tried it in different way and it worked. Created an array with quotes and somehow stringify was throwing error. Didnt use that.
Views
Replies
Total Likes
Views
Replies
Total Likes
Hello @Raj_Ganta
Can you try using this library?
https://github.com/abdolence/x2js
It has an option to parse with namespaces and root nodes.
I tried it in different way and it worked. Created an array with quotes and somehow stringify was throwing error. Didnt use that.
Views
Likes
Replies
Views
Likes
Replies