CanIOSharedObjectJSON

Class Overview

This class represents a shared space object that contains an underlying JSON document. The contents of this JSON document will be synced to all peers connected to the share space to which this object belongs.

Properties

@property (nonatomic, readonly, getter = underlyingJSON) NSDictionary *json;

Access a dictionary representing the underlying JSON document through this property.

Methods

- (void)setObject:(id)object forPath:(NSString *)path;

Use this method to set an object for a certain path in the underlying JSON document. Any peers connected to this object's space will receive this update.