[MOD] CSV/JSON conversion: check validity, 'lax' decoding revised. #810