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
Post a Comment