When Parsing JSON I normally just constuct an object and use the gsonlibrary to parse my String into that object.
However, I now find myself with a rather complex response which consists of many elements each with sub elements of objects and arrays and arrays of objects. It looks something like this...
{ "type": "thetype", "object":{ "text": "texthere", "moretext": "more here" }, ..., ..., ..., ..., "fieldIwant": [ { "object":"object!" }, .... .... { "object":"object!" }, ] } The thing is, I'm only really interested in fieldIwantand nothing else. Is there not a way in Java for me to just extract that field and work with it alone and not all this other dead weight I do not need?