首页 > 解决方案 > 我正在尝试为以下 json 定义一个 raml 规范:an arrayList of LinkedHashMap

问题描述

它是 LinkedHashMap 的 arrayList(以字符串为键,以 JsonObject 的数组为值)。任何想法?

[
 "1117": [
  {
   "id": "1117",
   "Tot": "10.0",
   "Per": "7/2025"
  },
  {
   "id": "1117",
   "Tot": "200.0",
   "Per": "2/2021"
  }
 ],
 "7997": [
  {
   "id": "7997",
   "Tot": "78.0",
   "Per": "10/2023"
  }
 ]
] 

谢谢。

标签: linkedhashmapraml

解决方案


推荐阅读