initial workings of the json input