Inherits from NSObject
Declared in DBJsonBase.h

Tasks

  •   maxDepth

    The maximum recursing depth.

    Defaults to 512. If the input is nested deeper than this the input will be deemed to be
    malicious and the parser returns nil, signalling an error. (“Nested too deep”.) You can
    turn off this security feature by setting the maxDepth value to 0.

    property
  •   errorTrace

    Return an error trace, or nil if there was no errors.

    Note that this method returns the trace of the last method that failed.
    You need to check the return value of the call you’re making to figure out
    if the call actually failed, before you know call this method.

    property
  • – addErrorWithCode:description:

    @internal for use in subclasses to add errors to the stack trace

  • – clearErrorTrace

    @internal for use in subclasess to clear the error before a new parsing attempt

Properties

errorTrace

Return an error trace, or nil if there was no errors.

Note that this method returns the trace of the last method that failed.
You need to check the return value of the call you’re making to figure out
if the call actually failed, before you know call this method.

@property (copy, readonly) NSArray *errorTrace

Declared In

DBJsonBase.h

maxDepth

The maximum recursing depth.

Defaults to 512. If the input is nested deeper than this the input will be deemed to be
malicious and the parser returns nil, signalling an error. (“Nested too deep”.) You can
turn off this security feature by setting the maxDepth value to 0.

@property NSUInteger maxDepth

Declared In

DBJsonBase.h

Instance Methods

addErrorWithCode:description:

@internal for use in subclasses to add errors to the stack trace

- (void)addErrorWithCode:(NSUInteger)code description:(NSString *)str

Declared In

DBJsonBase.h

clearErrorTrace

@internal for use in subclasess to clear the error before a new parsing attempt

- (void)clearErrorTrace

Declared In

DBJsonBase.h