have the json part working