Dryed up some of the REST + JSON parsing