I get the following JSON from a server and I would like to save all the values in different variables. Now everything is saved as one string variable.
{"firstName":"Jim","lastName":"Smith"}
What I would like to is to separate them and put them into two variables like in the example below. The firstName and lastName will be various, depending on what the server is sending to me.
String personFirstName= "Jim";
String personLastName = "Smith";