Answer the question
In order to leave comments, you need to log in
Why doesn't concat concatenate JSON correctly?
There are three JSON strings.
You need to fold them. I found the concat function in JS: jsonArray1 = answers_string.concat(sub_answers);
As a result, not valid JSON is obtained. It's missing a comma between curly braces. {"QID":3,"AID":2}{"SubAID":[]}
Question. Why and how to fix?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question