0
Answered
How to check if string is JSON object in i3 Pro?
How to check if string is JSON object in i3 Pro?
Customer support service by UserEcho
if you can parse string with JSON parse then can know string is JSON..
otherwise it can be simple normal Text.
you can use Regular expression as Pivovarov mentioned. I did not tried it but it should work.
https://stackoverflow.com/questions/3710204/how-to-check-if-a-string-is-a-valid-json-string-in-javascript-without-using-try