make sure we're sending valid json to json parser