Answers for "how to convert string to json"

0

convert json string to json object in java

try {
     JSONObject jsonObject = new JSONObject("{\"phonetype\":\"N95\",\"cat\":\"WP\"}");
}catch (JSONException err){
     Log.d("Error", err.toString());
}
Posted by: Guest on September-29-2020
1

Converting string to json object

var oTemp = JSON.parse(buf.toString());
Posted by: Guest on August-01-2021
6

js string to json

var obj = JSON.parse("{no:'u',my:'sql'}");//returnes {no:'u',my:'sql'}
Posted by: Guest on April-08-2020

Code answers related to "how to convert string to json"

Code answers related to "Javascript"

Browse Popular Code Answers by Language