figure out the json part