Diffusion Apple API 6.12.1
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
PTDiffusionJSONDelta Class Reference

An immutable structural delta describing the differences between two JSON values. More...

#include <PTDiffusionJSONDelta.h>

Inheritance diagram for PTDiffusionJSONDelta:

Properties

PTDiffusionJSONDeltaChangeMapremoved
PTDiffusionJSONDeltaChangeMapinserted
BOOL changes

Detailed Description

An immutable structural delta describing the differences between two JSON values.

Unlike a binary delta, a structural delta can be queried to determine its effect.

JSON deltas are useful for identifying small changes to complex JSON values.

See also
PTDiffusionJSON
Since
6.3

Property Documentation

◆ changes

- (BOOL) changes
readnonatomicassign

Whether the two JSON values used to create this instance are different.

Since
6.3

◆ inserted

- (PTDiffusionJSONDeltaChangeMap*) inserted
readnonatomicassign

The parts of the second JSON value not found in the first JSON value.

Note
The pointer references used for the change map keys are relative to the second JSON value.
Since
6.3

◆ removed

- (PTDiffusionJSONDeltaChangeMap*) removed
readnonatomicassign

The parts of the first JSON value not found in the second JSON value.

Note
The pointer references used for the change map keys are relative to the first JSON value.
Since
6.3