more lenient json-parsing, accepts numeric values as strings and if empty string then null.