Use exported json_to_val function from the json module.
Don't send response if param is null. Don't require jansson version 2.3+