You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One feature that comparable libraries such as serde for Rust offer, is the ability to flatten inner objects. This would be a nice addition for as-json.
From usage perspective, this could look like this:
One feature that comparable libraries such as serde for Rust offer, is the ability to flatten inner objects. This would be a nice addition for as-json.
From usage perspective, this could look like this:
Serializing an instance of
MyOuterClass
would result in JSON similar to this:The ability to flatten subproperties also helps to mitigate the shortcoming of AssemblyScript, that there are no nullable primitives as of today.
With flattening support this could be achieved like the following:
Without flattening, it is impossible to not propagate the helper properties to the outside world.
The text was updated successfully, but these errors were encountered: