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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -