I have JSON array like
"Headlines": [
{
"Title": "SPYRUS Announces Support for Windows To Go 10 Preview",
"Date": "2/18/2015",
"UTCOffset": 0,
"Source": "Marketwire - News Releases",
"Url": "http://www.redinews.com/news/?story=201502151176008.html",
"Images": [],
"Tags": [
{
"TagType": "Symbols",
"TagValues": [
"MSFT"
]
},
{
"TagType": "Companies",
"TagValues": [
"Microsoft Corporation"
]
},
I am accessing "Headlines" with this code using org.json.simple.parser.JSONParser
JSONParser jsonParser = new JSONParser();
JSONObject jsonObject = (JSONObject) jsonParser.parse(obj);
JSONArray lang = (JSONArray) jsonObject.get("Headlines");
System.out.println(lang);
but I need access "Tags" sub array and get TagType and TagValues
How to access it? will be good also know how to parse sub array with org.codehaus.jackson.
Thanks