Fix to_json crash on fields with inflation