making changes to produce correct JSON file

half way through. should make sure that format is correct asap