added error handling to json post data