I am having trouble trying parse some json data. The problem is it is sometimes in a different format. I've worked out the best way is to iterate through the data taking a jsonobject.
The problem I have is I need to check whether a specific key exists with a certain value. However the key maybe in the json multiple times and jsonobject.has doesn't always return the key I am looking for.
How would I check that a key "@type" exists with a value of "Recipe"?
2.1m questions
2.1m answers
60 comments
56.9k users