|
Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <JSONPath.h>
A minimal JSONPath implementation.
Definition at line 42 of file JSONPath.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 * | _JSONPath (void) |
| The JSONPath archetype. More... | |
| ident | objectForKeyPath (const ident root, const char *path) |
| Access a nested property from JSON 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 | |
| JSONPathInterface * | interface |
| The interface. More... | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. More... | |
|
protected |
The interface.
Definition at line 53 of file JSONPath.h.
| Object JSONPath::object |
The superclass.
Definition at line 47 of file JSONPath.h.
| Class * _JSONPath | ( | void | ) |
The JSONPath archetype.
Definition at line 118 of file JSONPath.c.
Access a nested property from JSON Data.
| root | The root element. |
| path | The JSONPath expression. |
NULL if not found. Accessing a nested boolean from JSON Data: id obj = $$(JSONSerialization, objectFromData, data, 0); Boole *boole = $$(JSONPath, objectForKeyPath, obj, "$.foo.bar[1].baz"); Use dot-notation (.) for accessing Dictionaries, and square braces ([0]) for Arrays. Definition at line 45 of file JSONPath.c.