working on json/rest