got parsing of json to work