Implemented JSON parsing to/from file.