public static String strValueToJson(Map<Object, Object> strValue) {

JSONObject jsonobject = new JSONObject( strValue );

try {

return  jsonobject.toString( strValue .size());

} catch (JSONException e) {

// TODO Auto-generated catch block

e.printStackTrace();

return  jsonobject.toString();

}

}

+ Recent posts