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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -