java - org.json.simple: Why does JSONParser.parse() return an Object and not a JSONObject? -


Just for curiosity, why is it simple- JSON parser does not return JSONObject? After checking the code, I hit me: many parsers like JSONParser, a recursive function that gives them the nodes and sub-branches of the tree, it makes them. During pars, the return value can be a JSON string, number, array, or object, so the broad base type (object) should be used for return type.

Comments

Popular posts from this blog

sql - Return Function using Cursor -

javascript - Is there any way to add a new parameter to a function programmatically? -

sql server - How to use pivot in this table -