I am trying to parse strings out of data. It isn't xml so I can't use proXML or simpleML.
I want to caputre what is after the indicator word and then between the quotes
This is the string I am trying to parse
{"id":"344434","name":"your name","first_name":"your","last_name":"name","link":"http://www.processing.org","location":"NY",}
so this is where Im at:
String data = " {"id":"344434","name":"your name","first_name":"your","last_name":"name","link":"http://www.processing.org","location":"NY",} ";
int start = data.indexOf(""id": " "); //start at/after id":
int end = data.indexOf(" " "); //end at the " after 344434
String wantedText = data.substring(start,end); //get the text between the end of id and before the quote after 344434
println(wantedText); //print in the text so I can the display it on the screen
I want to have one new substring for each data field. ie name, first_name, last_name.....
so its not working and Im not positive of how to get it to?!