Convert db_hacks to json.

The id will be generated by php.