Reader/writer to convert to/from dat to json.

Some fields are still unknown, but the edit process is simple enough.