ObjFW
 All Classes Functions Variables
Instance Methods | List of all members
<OFJSONRepresentation> Protocol Referenceabstract

A protocol implemented by classes that support encoding to a JSON representation. More...

#import <OFJSONRepresentation.h>

Inheritance diagram for <OFJSONRepresentation>:
OFArray OFDictionary OFNull OFNumber OFString OFMutableArray OFMutableDictionary OFConstantString OFMutableString

Instance Methods

(OFString *) - JSONRepresentation
 Returns the JSON representation of the object as a string.
 

Detailed Description

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!

Method Documentation

- (OFString*) JSONRepresentation

Returns the JSON representation of the object as a string.

Returns
The JSON representation of the object as a string.

The documentation for this protocol was generated from the following file: