Is there a way to check if a given Java String conforms to the format of a JavaScript object literal?
For e.g.,
String foo = "{ name1: value, name2: value2 }";
The String is not a JSON Object i.e. name1, name2, value1, value2 are not in double quotes. Is there a way to test if foo is a valid object literal?
Thanks, Sony