Forms: validation data are now valid JSON

Parsing is done using native JSON parser, if available.
Compatibility with old format is preserved.