change json_schema to a cattr_accessor