added a thin wrapper to the API for uploading JSON data