abstracting out the json parsing; added PUT to update the entry body