ObjFW
Public Member Functions
<OFJSON> Protocol Reference

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

#import <OFJSONEncoding.h>

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

List of all members.

Public Member Functions

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

Detailed Description

A category 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!

Member Function 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:
 All Classes Functions Variables Properties