I have a javascript object like follows.
{
"name": {
"type": "text",
"onClick": function () {
console.log("Hello");
}
}
}
It is stored in string format in Java like.
String obj = "{ \"name\": { \"type\": \"text\", \"onClick\": function () { console.log(\"Hello\"); } } }";
I'm trying to figure out a way to read this obj in Java and traverse through the object graph like we can with JSON using Jackson if it didn't have function declaration.
Is there any Java library to read/parse a string representing javascript object (not just JSON) and traverse through the object graph?