|
Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <JSONSerialization.h>
JSON serialization and introspection.
Definition at line 63 of file JSONSerialization.h.
Properties | |
| Object | object |
| The superclass. More... | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
| Class * | _JSONSerialization (void) |
| The JSONSerialization archetype. More... | |
| Data * | dataFromObject (const ident obj, int options) |
| Serializes the given Object to JSON Data. More... | |
| ident | objectFromData (const Data *data, int options) |
| Parses an Object from the specified Data. More... | |
Methods inherited from Object | |
| Class * | _Object (void) |
| The Object archetype. More... | |
| Object * | copy (const Object *self) |
| Creates a shallow copy of this Object. More... | |
| void | dealloc (Object *self) |
| Frees all resources held by this Object. More... | |
| String * | description (const Object *self) |
| int | hash (const Object *self) |
| Object * | init (Object *self) |
| Initializes this Object. More... | |
| _Bool | isEqual (const Object *self, const Object *other) |
| Tests equality of the other Object. More... | |
| _Bool | isKindOfClass (const Object *self, const Class *clazz) |
| Tests for Class hierarchy membership. More... | |
Protected Attributes | |
| JSONSerializationInterface * | interface |
| The interface. More... | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. More... | |
|
protected |
The interface.
Definition at line 74 of file JSONSerialization.h.
| Object JSONSerialization::object |
The superclass.
Definition at line 68 of file JSONSerialization.h.
| Class * _JSONSerialization | ( | void | ) |
The JSONSerialization archetype.
Definition at line 511 of file JSONSerialization.c.
Serializes the given Object to JSON Data.
| obj | The Object to serialize. |
| options | A bitwise-or of JSON_WRITE_*. |
Definition at line 223 of file JSONSerialization.c.
Parses an Object from the specified Data.
| data | The JSON Data. |
| options | A bitwise-or of JSON_READ_*. |
NULL on error. Definition at line 482 of file JSONSerialization.c.