Document to Json parse output format error


I’m use documenttojson function. sometimes it show wrong json format like missing " or { . is it some limitation for document to parse to json format?

the error is something like this:
SyntaxError: JSON.parse: expected ‘,’ or ‘}’ after property value in object at line 767 column 2 of the JSON data

actually the raw data is there but it is not the correct json format because some character is missing.

i’m using wM 9.7

anyone can help?

better to provide the Json that you are having issue with.