-1
{
"description": "Something",
"id": "abc.def.xyzjson#",
"type": "object",
"properties": {
"triggerTime": {
"description": "Something",
"$ref": "abc.def.xyz.1.json#"
"required": true
},
"customerId": {
"type": "string",
"description": "Something",
"$ref": "abc.def.xyz.1.json#"
},
.....更多的按键........ 我需要去到$ REF文件的位置和矿脉是JSON到地图 请帮我如何阅读。 已经我能念想
File jsonInputFile = new File("location");
System.out.println("Keys : " + entry2.getKey());
你可以使用gson,检查以下链接https://github.com/google/gson –
什么是'entry2'? –
所有的json解析都是一样的。从顶部开始。知道什么是对象和数组。你可以在这里没有数组,所以应该很容易得到customerId,这是内部参考 –