4
I’m developing a dynamic form for Android in which you get a Json file and create the forms. Everything is automated, except for the part where I have to pick up a string in Json’s hand. There is a way to read the string without setting its name inside the .getString
?
"{\"nome\":\"nome\",\"sobrenome\":\"sobrenome\",\"idade\":\"idade\",\"endereco\":\"endereco\",\"pais\":\"pais\"}"
I am using the jo.getString("nome")
for example, and placing inside a string vector, I can place it in the vector without knowing if inside the json the string "name"?
If possible delete these two questions: 1 and 2 when it is necessary to put new information about your problem, it is not necessary to create a new question, there is a magic resource called edit between "Share" and "close". Make a tour, see also: How to ask a good question? and How to create a Minimum, Complete and Verifiable example
– stderr
What is
jo
? Aorg.json.JSONObject
? Post a piece of your code.– Anthony Accioly