First working version of MySQL to JSON.