Answers for "convert string to jspn object"

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
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 "convert string to jspn object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language