Check for valid json in post request