Converted data types to JSON.

This will really help in porting this project to use a server-side backend, because realistically the old txt-file-parsed file format is not scalable at all.