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
{{ message }}
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
Drew Koszewnik edited this page Nov 15, 2013
·
2 revisions
It’s easy to create JSON data from objects with Zeno. Let’s look at a code example:
In this example, we’ve instantiated a JsonSerializationFramework with our SerializerFactory, and then passed it the type name (as defined in our NFTypeSerializer), and the object. The result of this call is as follows:
To deserialize a json representation of our object, we can pass a String into the JsonSerializationFramework:
Like all Zeno framework implementations, we can use any object in our model heirarchy with the JsonSerializationFramework. We are not constrained to just top level objects: