Hi there i am new with mongodb and i want to convert JSONObject to Document and then store it to mongodb. Here is what i have coded.I get a service api in json.
<
Just to help you. You can also do:
JSONObject rat = exRat.getJSONObject("fieldfromJson");String newrat = rat.toString();
Then you have to parse the field you want, and you have a string.