A protocol that defines JSON methods for an Object. More...
#import <Foundation/Foundation.h>
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... | |
A protocol that defines JSON methods for an Object.
Definition at line 14 of file JSON+Protocol.h.
|
required |
Returns the appropriate capacity for the JSON representation of the instance.
This method is used to determine the approximate capacity required for the JSON representation, which can be useful for memory allocation or performance optimizations.
|
required |
Returns a JSON representation of the instance.
Reimplemented in NXString.