Hi.
I have following
string which I recieved from Jquery post. Original object was modified to string with Json.stringify.
a) I tried with following but I only return first json object.
JSONObject obj = new JSONObject(jsonData);
System.out.println("id: " + obj.getString("id"));
System.out.println("price: " + obj.getString("price"))
b.) I tried regex with filter="\\{,\\}" for String.split(filter) but it still doesn't work.
Here is string:
{"id":"Coat summer","price":"$58.99"},{"id":"Coat summer","price":"$58.99"},{"id":"Coat winter","price":"$128.99"}
Thank you.