3. JSON Class hinting ¶
There are only simple data types defined in JSON.
To overcome this problem in a JSON compatible way a special property for objects is introduced.
{"__jsonclass__":["constructor", [param1,...]], "prop1": ...}
The object is then instantiated using the constructor, passing in the parameters.
Once constructed the properties (prop1, ...) will be applied.
« First
‹ Previous
41 - 48 of 48
Showing 20▼ items per page