Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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());
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #json #string #json #object #java
ADD COMMENT
Topic
Name
2+1 =