Fix for JSON parsing that accepts only 2-item lists

Turns out the current JSON parsing only accepts 2-item lists. Any other number of items results in a syntax error