Closed alexandre-mbm closed 10 years ago
Solution in shell script = option 1 + option 2
Test:
$ ./gencat.sh
Invalid control character at: line 4 column 11 (char 41)
categories.json: line terminator characters must be escaped inside string literals: u'\n"Aeroporto",\n"A...
$ ./gencat.sh
Invalid control character at: line 4 column 11 (char 41)
categories.json: line terminator characters must be escaped inside string literals: u'\n"Aeroporto",\n"A...
$ ./gencat.sh
Expecting , delimiter: line 9 column 1 (char 124)
categories.json: values must be separated by a comma: u'"Albergue"'
$ ./gencat.sh
categories.json: ok
alexandre$
@sabas, @osmlab, this may interest you.
Example:
$ ./gencat.sh
categories.json: ok
payment.json: ok
Cool! :)
Option 1: jsonlint
Install:
Examples:
Option 2:
json.tool
Python moduleExample: