Print JSON array through javascript : When importing data from a JSON file we get this array called "parcelshopSpecs.data.formatted_opening_times", which are opening times of a store:

    {2=>[09:00 - 22:00] 4=>[09:00 - 22:00] 6=>[10:00 - 18:00] 1=>[09:00 - 22:00] 5=>[09:00 - 20:00] 3=>[09:00 - 22:00] 0=>[09:00 - 22:00]}


We would like to process this data and show it like:

> Monday: 09:00 - 02:00<br>
Tuesday: 09:00 - 22:00<br>
...


I have tried to parse the data in JSON and show the content:

        var opening_times = JSON.parse(parcelshopSpecs.data.formatted_opening_times);
        var content = "Monday: " 
        content += ${opening_times[0][2]}


But result in error console is "Uncaught SyntaxError: Unexpected number in JSON at position 1"

Hope someone can help