我有一个包含以下对象的 JavaScript 文件:
var MoceanSettings={
BannerURL:'',
IsDirectWall:true,
AppOfDayZone:156431,
ImpressTrackUrl:null,
ClickTrackUrl:null,
Categories:[
{name:'App Gallery', Zone_T:165294,Zone_M:165295,Zone_B:165296},
{name:'Entertainment', Zone_T:165306,Zone_M:165307,Zone_B:165308},
{name:'Games', Zone_T:165297,Zone_M:165298,Zone_B:165299},
{name:'Lifestyle', Zone_T:165309,Zone_M:165310,Zone_B:165311},
{name:'Productivity', Zone_T:165303,Zone_M:165304,Zone_B:165305},
{name:'Travel', Zone_T:165300,Zone_M:165301,Zone_B:165302},
{name:'Favorites', Zone_T:156431,Zone_M:156431,Zone_B:156431}
]
}
使用 java 我想将此文件解析为对象/数组。我对 JavaScript 和 json 的工作知识非常有限。