got the json reading working