This should use the functions provided by rec2json's parse transform:

    pre_rec_character:to_json(Character).

If there's a need to filter out fields or expand them, that can be done by the functions created by rec to json as documented at https://github.com/lordnull/rec2json#to_json.