Fix for JSON parsing that accepts only 2-item lists