0 votes
in Programming by (580 points)

I have a JSON in the below format, I want to create an HTML file from it in the given format. Unfortunately I can only use 'jq' to achieve this due to some limitations. I am new to the world of shell script and this one is really bugging me.

[
  {
    "key1" : "value1",
    "key2" : "value2",
    "key3" : "value3",
    "key4":[
      {
        "key5" : "value5",
        "key6" : "value6"
      },
      {
        "key5" : "value7",
        "key6" : "value8"
      }
      ]
  },
  {
    "key1" : "value11",
    "key2" : "value12",
    "key3" : "value13",
    "key4":[
      {
        "key5" : "value15",
        "key6" : "value16"
      },
      {
        "key5" : "value17",
        "key6" : "value18"
      }
      ]
  }
]

HTML should appear like this

Please log in or register to answer this question.

...