[
{
"dataset": "Kushman",
"iIndex": 1964,
"sQuestion": "The grocer has peanuts for 3.75 dollars a pound and walnuts for 2.75 dollars a pound. How many pounds of peanuts and walnuts must we mix to get 40 pounds of mixture to sell for 3.00 dollars per pound. ",
"lEquations": [
"(3.75*peanuts)+(2.75*walnuts)=3.0*40.0",
"peanuts+walnuts=40.0"
],
"lSolutions": [
10.0,
30.0
],
"grammarCheck": 1,
"templateNumber": 4
},
{
"dataset": "Kushman",
"iIndex": 2003,
"sQuestion": "Admission tickets to a football game were 60 cents for adults and 25 cents for children. Receipts for the day showed that 280 persons attended and 140 dollars was collected. How many adults attended? How many children attended?",
"lEquations": [
"(60*.01*noof_adults)+(25*.01*noof_childrens)=140.0",
"noof_adults+noof_childrens=280.0"
],
"lSolutions": [
200.0,
80.0
],
"grammarCheck": 1,
"templateNumber": 2
}
]
這是名爲「Kushman.json」的Json文件。我想解析它,並將結果保存在不同的文本文件中,以便像JSON文件中的數據集,問題和解決方案。如何解析JSONObjects的JSONArray,以及JSONArray和JSONArray在JAVA裏面?
可能的重複[如何解析Java中的JSON](http://stackoverflow.com/questions/2591098/how-to-parse-json-in-java) –