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

Support Null As-Is in OBJECT_MARKER #4

Open
vjkoskela opened this issue Jun 4, 2015 · 0 comments
Open

Support Null As-Is in OBJECT_MARKER #4

vjkoskela opened this issue Jun 4, 2015 · 0 comments

Comments

@vjkoskela
Copy link
Member

The OBJECT_MARKER allows the serialized form of any object to replace the entire value of the data block. For example, if you provided a String "ABC" then the serialized form would be:

{ ... "context":{ ... }, "data":"ABC" ... }

Similarly, the object could be a collection or complex class. Regardless of what the type is, the value may be null. The Steno format does not permit a null value for the "data" key. However, we should support this an option.

Specifically, if "allowNullData" (for example) is set to true then the value of "data" is allowed to be null. For example:

{ ... "context":{ ... }, "data":null ... }

The option should be set to false by default because it is strictly not compliant with the Steno specification but can be useful in some cases.

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