I believe there is an issue with the parser of JSON. When sent example JSON like
{"test":"1","message":{"example":"1","json_content":"{\"blocks\":[{\"text\":\"hello\ \",\"data_to_be_truncated\":\"here\"}","test2":"2","links":[]}}
The text after hello\ \" will be truncated for json_content which causes errors in parsing inner JSON. Other libraries flag this as improper JSON and return an empty struct while GJSON will return
I believe there is an issue with the parser of JSON. When sent example JSON like
{"test":"1","message":{"example":"1","json_content":"{\"blocks\":[{\"text\":\"hello\ \",\"data_to_be_truncated\":\"here\"}","test2":"2","links":[]}}
The text after
hello\ \"
will be truncated for json_content which causes errors in parsing inner JSON. Other libraries flag this as improper JSON and return an empty struct while GJSON will returnwithout error. Please let me know if you need further details.