Imagine a data list dumped in a plain text file (e.g: CSV) and you need to convert it to JSON format. You could use this simple php script to do such task.
It's the simplest version but from here you can customize it to fit your requeriments.
php script_name.php file_to_convert.csv > result.json
$csv = file_get_contents( $argv ); $csv =...