TinyCborObjc allows encoding and decoding Foundation-objects into/from CBOR representation.
Supported types:
NSDictionary
NSArray
NSString
NSNumber
NSNull
NSData
Encoding
#import <TinyCborObjc/NSObject+DSCborEncoding.h>
NSDictionary *dictionary = ...;
NSData *cborData = [dictionary ds_cborEncodedObject];
Decoding
#import <TinyCborObjc/NSData+DSCborDecoding.h>
NSData *data = ...; // CBOR data
NSError *error = nil;
id decoded = [data ds_decodeCborError:&error];
Build on top of tinycbor library (integrated as pod dependency).
TinyCborObjc is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TinyCborObjc'
Andrew Podkovyrin, podkovyrin@gmail.com
Hamilton Chapman, hamchapman@gmail.com
Connor Power, connor@connorpower.com
TinyCborObjc is available under the MIT license. See the LICENSE file for more info.