fixed to pass json_spec