objc

Instance Methods
<JSONProtocol> Protocol Reference

A protocol that defines JSON methods for an Object. More...

#import <Foundation/Foundation.h>

Inheritance diagram for <JSONProtocol>:
Inheritance graph
[legend]

Instance Methods

(NXString *) - JSONString
 Returns a JSON representation of the instance. More...
 
(size_t) - JSONBytes
 Returns the appropriate capacity for the JSON representation of the instance. More...
 

Detailed Description

A protocol that defines JSON methods for an Object.

Definition at line 14 of file JSON+Protocol.h.

Method Documentation

◆ JSONBytes()

- (size_t) JSONBytes
required

Returns the appropriate capacity for the JSON representation of the instance.

Returns
An approximate number of bytes required to represent the instance in JSON format.

This method is used to determine the approximate capacity required for the JSON representation, which can be useful for memory allocation or performance optimizations.

◆ JSONString()

- (NXString *) JSONString
required

Returns a JSON representation of the instance.

Returns
A JSON string representation of the receiver.

Reimplemented in NXString.


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