Fix for JSON parameter rejecting single-item list

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