Fixed form to JSON conversion.