I have the string representation of a JSON-serialized object in Java e.g. \"{\\\"name\\\":\\\"John\\\",\\\"age\\\":24}\". How do I parse and return it to the JavaSc
\"{\\\"name\\\":\\\"John\\\",\\\"age\\\":24}\"
Found the answer here: Access Rhino's native JSON.Stringify from Java
import org.mozilla.javascript.NativeJSON; Object json = NativeJSON.parse(cx, scope, str, null, null);