c# Json string to json code example
Example 1: 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());
}
Example 2: c# object to json string
Newtonsoft.Json.JsonConvert.SerializeObject(new {foo = "bar"})