abapinho / abaK

ABAP constants done right
MIT License
32 stars 3 forks source link

Allow for format type JSON #5

Closed nununo closed 5 years ago

nununo commented 5 years ago

Similar to ZCL_ABAK_FORMAT_XML but expects an inline JSON format instead of XML.

Proposed format:

{
  "abak": {
    "name": "Project Z",
    "k": [
      {
        "ricef": "GLOBAL",
        "fieldname": "BUKRS",
        "context": "MAIN",
        "value": "1234"
      },
      {
        "ricef": "PROJZ",
        "fieldname": "WRBTR",
        "v": [
          {
            "sign": "I",
            "option": "EQ",
            "low": "1000"
          },
          {
            "sign": "I",
            "option": "BT",
            "low": "2000",
            "high": "3000"
          }
        ]
      }
    ]
  }
}
nununo commented 5 years ago

fixed by c34993927911b01fe8f02d99361c41d24bc9c6bc