JSON Parsing and writing tentatively working