I have Strings like this:
fields {
key: "ristorante"
value {
string_value: ""
}
}
fields {
key: "type"
value {
list_value {
values {
string_value: "pizza"
}
}
}
}
And I need to extract just the string_value of type, in this case the word pizza.
How can I do it in Java?
I don't want the answer for this specific case, I just want to know how to extract some text from a String or if is better to parse it to a JSON, and how to do it.