Updating the REST API markdown
cleaning up some of the asJSON methods