Hello. Newbie to Groovy. Have a text string that I need to verify is a
representation of valid JSON, or not. What is an effective means to do this
in Groovy? I'm having difficulty determining what a method like JSONSlurper
will return to me if the string can't be parsed because it is not valid
JSON? I've found plenty of examples of results it returns when it works,
but nothing yet showing me what it returns when the string isn't valid
JSON.
Hope this is a valid way to post such a question. As I said, this is my
first time trying this or any Groovy forum. Thanks in advance for any help.
-Jim

Reply via email to