This PHP script converts a JSON file to a series of SQL INSERT staments
Make this executable
$ chmod u+x json2sql
Then invoke it from the command line like this
$ json2sql tablename myfile.json
The script will automatically write the resulting file as myfile.sql
- By Hay Kranen: http://www.haykranen.nl
- Fork it on Github: http://github.com/hay/json2sql