Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add raw type for defered type decoding #4

Open
pkedy opened this issue Mar 22, 2021 · 0 comments
Open

Add raw type for defered type decoding #4

pkedy opened this issue Mar 22, 2021 · 0 comments

Comments

@pkedy
Copy link
Member

pkedy commented Mar 22, 2021

In certain cases, an application may want to defer deserialization of a data type until it can determine the type of data enclosed in the payload. Similar to Go's json.RawType, raw would be a way of express that raw encoded data is here and preserve the raw encoded bytes. This is different than bytes in that the encoding still contains the actual data types (e.g. object, array, string, primitives) vs being an actual array of bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant