jon2
35
JSON Machine uses text which defines an object in Javascript. What you’ve got here is text which defines an array and JSON machine cannot work with that natively. You could try merging your array’s text with the necessary text to convert the array into an object.
something like:
{ "examplearraykey" : + ** your array text ** + }
which should produce this as the output:
{ "examplearraykey" : [{“Sales":"ezhangtest@gmail.com”,“Monthly Sale”:100000,“Month”:6},{“Sales":"ezhang@test.com”,“Monthly Sale”:200000,“Month”:4}] }
This has now been formatted as the proper JSON object, which can be worked on with JSON machine, just target ‘examplearraykey’.
1 Like