I have an object in the response string which has empty/null/blank fields like field2 below:
obj { "field1": "somevalue", "field2": {} }when JSON.parsed(obj), obj.field2 gives "{}" instead of blank.
I'd want to get a blank string instead of the braces. Any suggestions to deal with this are most welcome. Thanks in advance.
1 Answer
obj { "field1": "somevalue", "field2": "" }
Your Answer
Think you can help? Login to answer this question!