I've been working on UCAN based RPC system that encodes request / responses into set of CBOR blocks in a CAR. Unfortunately it proved challenging to not encounter errors from CBOR codec due to some field set to undefined or due to some built-in data type like Error been referenced.
Could we add an option to make CBOR codec behave more or less like JSON.stringify does, specifically
- Just leave out
undefined values
- Don't complain about Error or other built-in instances, instead just include own enumerable properties
I've been working on UCAN based RPC system that encodes request / responses into set of CBOR blocks in a CAR. Unfortunately it proved challenging to not encounter errors from CBOR codec due to some field set to
undefinedor due to some built-in data type like Error been referenced.Could we add an option to make CBOR codec behave more or less like JSON.stringify does, specifically
undefinedvalues