31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
OFJSONRepresentationOptionPretty = 0x01,
/** Generate JSON5 */
OFJSONRepresentationOptionJSON5 = 0x02,
OFJSONRepresentationOptionIsIdentifier = 0x10
} OFJSONRepresentationOptions;
/**
* @protocol OFJSONRepresentation
* OFJSONRepresentation.h ObjFW/OFJSONRepresentation.h
*
* @brief A protocol implemented by classes that support encoding to a JSON
* representation.
*
* @warning Although this method can be called directly on classes other than
* OFArray and OFDictionary, this will generate invalid JSON, as JSON
* requires all data to be encapsulated in an array or a dictionary!
|
|
<
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
OFJSONRepresentationOptionPretty = 0x01,
/** Generate JSON5 */
OFJSONRepresentationOptionJSON5 = 0x02,
OFJSONRepresentationOptionIsIdentifier = 0x10
} OFJSONRepresentationOptions;
/**
* @protocol OFJSONRepresentation OFJSONRepresentation.h ObjFW/ObjFW.h
*
* @brief A protocol implemented by classes that support encoding to a JSON
* representation.
*
* @warning Although this method can be called directly on classes other than
* OFArray and OFDictionary, this will generate invalid JSON, as JSON
* requires all data to be encapsulated in an array or a dictionary!
|