FMIceLinkJsonSerializer Class Reference

Inherits from NSObject
Declared in FMIceLinkJsonSerializer.h
FMIceLinkJsonSerializer.m

Overview

Provides methods for serializing/deserializing .NET value types to/from JSON as well as facilities for converting objects and arrays if appropriate callbacks are supplied to assist with the conversion.

Other Methods

+ deserializeBooleanArrayWithArrayJson:

Deserializes a boolean array from JSON.
+ (NSMutableArray *)deserializeBooleanArrayWithArrayJson:(NSString *)arrayJson

Parameters

arrayJson

A JSON-serialized boolean array.

Return Value

An array of boolean values.

Discussion

Deserializes a boolean array from JSON.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeBooleanWithValueJson:

Deserializes a boolean value.
+ (FMIceLinkNullableBool *)deserializeBooleanWithValueJson:(NSString *)valueJson

Parameters

valueJson

The boolean JSON to deserialize.

Return Value

The deserialized boolean value.

Discussion

Deserializes a boolean value.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeDecimalArrayWithArrayJson:

Deserializes a decimal array from JSON.
+ (NSMutableArray *)deserializeDecimalArrayWithArrayJson:(NSString *)arrayJson

Parameters

arrayJson

A JSON-serialized decimal array.

Return Value

An array of decimal values.

Discussion

Deserializes a decimal array from JSON.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeDecimalWithValueJson:

Deserializes a decimal value.
+ (FMIceLinkNullableDecimal *)deserializeDecimalWithValueJson:(NSString *)valueJson

Parameters

valueJson

The decimal JSON to deserialize.

Return Value

The deserialized decimal value.

Discussion

Deserializes a decimal value.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeDictionaryWithDictionaryJson:createDictionaryCallback:deserializeValueCallback:

Deserializes a JSON string into a dictionary.

The type of value stored in the dictionary.

+ (NSMutableDictionary *)deserializeDictionaryWithDictionaryJson:(NSString *)dictionaryJson createDictionaryCallback:(FMIceLinkFunction0 *)createDictionaryCallback deserializeValueCallback:(FMIceLinkFunction1 *)deserializeValueCallback

Parameters

dictionaryJson

The JSON-encoded dictionary.

createDictionaryCallback

The callback that creates a blank dictionary.

deserializeValueCallback

The callback that deserializes a value. @return The deserialized dictionary.

Discussion

Deserializes a JSON string into a dictionary.

The type of value stored in the dictionary.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeDictionaryWithDictionaryJson:createDictionaryCallbackBlock:deserializeValueCallbackBlock:

Deserializes a JSON string into a dictionary.

The type of value stored in the dictionary.

+ (NSMutableDictionary *)deserializeDictionaryWithDictionaryJson:(NSString *)dictionaryJson createDictionaryCallbackBlock:(NSMutableDictionary *( ^ ) ( ))createDictionaryCallbackBlock deserializeValueCallbackBlock:(id ( ^ ) ( NSString *))deserializeValueCallbackBlock

Parameters

dictionaryJson

The JSON-encoded dictionary.

createDictionaryCallbackBlock

The callback that creates a blank dictionary.

deserializeValueCallbackBlock

The callback that deserializes a value. @return The deserialized dictionary.

Discussion

Deserializes a JSON string into a dictionary.

The type of value stored in the dictionary.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeDictionaryWithDictionaryJsonAndCreateDictionaryCallbackBlockAndDeserializeValueCallbackBlock

Deserializes a JSON string into a dictionary.

The type of value stored in the dictionary. @inlineparam dictionaryJson The JSON-encoded dictionary. @inlineparam createDictionaryCallbackBlock The callback that creates a blank dictionary. @inlineparam deserializeValueCallbackBlock The callback that deserializes a value. @return The deserialized dictionary.

+ (NSMutableDictionary *( ^ ) ( NSString *, NSMutableDictionary *( ^ ) ( ) , id ( ^ ) ( NSString *) ))deserializeDictionaryWithDictionaryJsonAndCreateDictionaryCallbackBlockAndDeserializeValueCallbackBlock

Discussion

Deserializes a JSON string into a dictionary.

The type of value stored in the dictionary. @inlineparam dictionaryJson The JSON-encoded dictionary. @inlineparam createDictionaryCallbackBlock The callback that creates a blank dictionary. @inlineparam deserializeValueCallbackBlock The callback that deserializes a value. @return The deserialized dictionary.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeDoubleArrayWithArrayJson:

Deserializes a double array from JSON.
+ (NSMutableArray *)deserializeDoubleArrayWithArrayJson:(NSString *)arrayJson

Parameters

arrayJson

A JSON-serialized double array.

Return Value

An array of double values.

Discussion

Deserializes a double array from JSON.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeDoubleWithValueJson:

Deserializes a double value.
+ (FMIceLinkNullableDouble *)deserializeDoubleWithValueJson:(NSString *)valueJson

Parameters

valueJson

The double JSON to deserialize.

Return Value

The deserialized double value.

Discussion

Deserializes a double value.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeFloatArrayWithArrayJson:

Deserializes a float array from JSON.
+ (NSMutableArray *)deserializeFloatArrayWithArrayJson:(NSString *)arrayJson

Parameters

arrayJson

A JSON-serialized float array.

Return Value

An array of float values.

Discussion

Deserializes a float array from JSON.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeFloatWithValueJson:

Deserializes a float value.
+ (FMIceLinkNullableFloat *)deserializeFloatWithValueJson:(NSString *)valueJson

Parameters

valueJson

The float JSON to deserialize.

Return Value

The deserialized float value.

Discussion

Deserializes a float value.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeGuidArrayWithArrayJson:

Deserializes a GUID array from JSON.
+ (NSMutableArray *)deserializeGuidArrayWithArrayJson:(NSString *)arrayJson

Parameters

arrayJson

A JSON-serialized GUID array.

Return Value

An array of GUID values.

Discussion

Deserializes a GUID array from JSON.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeGuidWithValueJson:

Deserializes a globally unique identifier.
+ (FMIceLinkNullableGuid *)deserializeGuidWithValueJson:(NSString *)valueJson

Parameters

valueJson

The GUID JSON to deserialize.

Return Value

The deserialized GUID.

Discussion

Deserializes a globally unique identifier.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeIntegerArrayWithArrayJson:

Deserializes a integer array from JSON.
+ (NSMutableArray *)deserializeIntegerArrayWithArrayJson:(NSString *)arrayJson

Parameters

arrayJson

A JSON-serialized integer array.

Return Value

An array of integer values.

Discussion

Deserializes a integer array from JSON.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeIntegerWithValueJson:

Deserializes an integer value.
+ (FMIceLinkNullableInt *)deserializeIntegerWithValueJson:(NSString *)valueJson

Parameters

valueJson

The integer JSON to deserialize.

Return Value

The deserialized integer value.

Discussion

Deserializes an integer value.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeLongArrayWithArrayJson:

Deserializes a long array from JSON.
+ (NSMutableArray *)deserializeLongArrayWithArrayJson:(NSString *)arrayJson

Parameters

arrayJson

A JSON-serialized long array.

Return Value

An array of long values.

Discussion

Deserializes a long array from JSON.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeLongWithValueJson:

Deserializes a long value.
+ (FMIceLinkNullableLong *)deserializeLongWithValueJson:(NSString *)valueJson

Parameters

valueJson

The long JSON to deserialize.

Return Value

The deserialized long value.

Discussion

Deserializes a long value.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeObjectArrayWithJson:deserializer:

Deserializes a JSON string into an array of target object types.

The type of the object to deserialize.

+ (NSMutableArray *)deserializeObjectArrayWithJson:(NSString *)json deserializer:(FMIceLinkFunction1 *)deserializer

Parameters

json

The JSON-encoded string.

deserializer

The callback used to deserialize each item in the array.

Return Value

An array of deserialized objects.

Discussion

Deserializes a JSON string into an array of target object types.

The type of the object to deserialize.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeObjectArrayWithJson:deserializerBlock:

Deserializes a JSON string into an array of target object types.

The type of the object to deserialize.

+ (NSMutableArray *)deserializeObjectArrayWithJson:(NSString *)json deserializerBlock:(id ( ^ ) ( NSString *))deserializerBlock

Parameters

json

The JSON-encoded string.

deserializerBlock

The callback used to deserialize each item in the array.

Return Value

An array of deserialized objects.

Discussion

Deserializes a JSON string into an array of target object types.

The type of the object to deserialize.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeObjectArrayWithJsonAndDeserializerBlock

Deserializes a JSON string into an array of target object types.

The type of the object to deserialize. @inlineparam json The JSON-encoded string. @inlineparam deserializerBlock The callback used to deserialize each item in the array.

+ (NSMutableArray *( ^ ) ( NSString *, id ( ^ ) ( NSString *) ))deserializeObjectArrayWithJsonAndDeserializerBlock

Return Value

An array of deserialized objects.

Discussion

Deserializes a JSON string into an array of target object types.

The type of the object to deserialize. @inlineparam json The JSON-encoded string. @inlineparam deserializerBlock The callback used to deserialize each item in the array.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeObjectFastWithJson:creator:callback:

Deserializes a JSON string into a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) target object type.

The type of the object to deserialize.

+ (FMIceLinkSerializable *)deserializeObjectFastWithJson:(NSString *)json creator:(FMIceLinkFunction0 *)creator callback:(FMIceLinkAction3 *)callback

Parameters

json

The JSON-encoded string.

creator

The method used for creating a new object.

callback

The method used for deserializing a property.

Return Value

The deserialized object.

Discussion

Deserializes a JSON string into a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) target object type.

The type of the object to deserialize.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeObjectFastWithJson:creatorBlock:callbackBlock:

Deserializes a JSON string into a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) target object type.

The type of the object to deserialize.

+ (FMIceLinkSerializable *)deserializeObjectFastWithJson:(NSString *)json creatorBlock:(FMIceLinkSerializable *( ^ ) ( ))creatorBlock callbackBlock:(void ( ^ ) ( FMIceLinkSerializable *, NSString *, NSString *))callbackBlock

Parameters

json

The JSON-encoded string.

creatorBlock

The method used for creating a new object.

callbackBlock

The method used for deserializing a property.

Return Value

The deserialized object.

Discussion

Deserializes a JSON string into a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) target object type.

The type of the object to deserialize.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeObjectFastWithJsonAndCreatorBlockAndCallbackBlock

Deserializes a JSON string into a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) target object type.

The type of the object to deserialize. @inlineparam json The JSON-encoded string. @inlineparam creatorBlock The method used for creating a new object. @inlineparam callbackBlock The method used for deserializing a property.

+ (FMIceLinkSerializable *( ^ ) ( NSString *, FMIceLinkSerializable *( ^ ) ( ) , void ( ^ ) ( FMIceLinkSerializable *, NSString *, NSString *) ))deserializeObjectFastWithJsonAndCreatorBlockAndCallbackBlock

Return Value

The deserialized object.

Discussion

Deserializes a JSON string into a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) target object type.

The type of the object to deserialize. @inlineparam json The JSON-encoded string. @inlineparam creatorBlock The method used for creating a new object. @inlineparam callbackBlock The method used for deserializing a property.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeObjectWithJson:creator:callback:

Deserializes a JSON string into a target object type.

The type of the object to deserialize.

+ (id)deserializeObjectWithJson:(NSString *)json creator:(FMIceLinkFunction0 *)creator callback:(FMIceLinkAction3 *)callback

Parameters

json

The JSON-encoded string.

creator

The method used for creating a new object.

callback

The method used for deserializing a property.

Return Value

The deserialized object.

Discussion

Deserializes a JSON string into a target object type.

The type of the object to deserialize.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeObjectWithJson:creatorBlock:callbackBlock:

Deserializes a JSON string into a target object type.

The type of the object to deserialize.

+ (id)deserializeObjectWithJson:(NSString *)json creatorBlock:(id ( ^ ) ( ))creatorBlock callbackBlock:(void ( ^ ) ( id , NSString *, NSString *))callbackBlock

Parameters

json

The JSON-encoded string.

creatorBlock

The method used for creating a new object.

callbackBlock

The method used for deserializing a property.

Return Value

The deserialized object.

Discussion

Deserializes a JSON string into a target object type.

The type of the object to deserialize.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeObjectWithJsonAndCreatorBlockAndCallbackBlock

Deserializes a JSON string into a target object type.

The type of the object to deserialize. @inlineparam json The JSON-encoded string. @inlineparam creatorBlock The method used for creating a new object. @inlineparam callbackBlock The method used for deserializing a property.

+ (id ( ^ ) ( NSString *, id ( ^ ) ( ) , void ( ^ ) ( id , NSString *, NSString *) ))deserializeObjectWithJsonAndCreatorBlockAndCallbackBlock

Return Value

The deserialized object.

Discussion

Deserializes a JSON string into a target object type.

The type of the object to deserialize. @inlineparam json The JSON-encoded string. @inlineparam creatorBlock The method used for creating a new object. @inlineparam callbackBlock The method used for deserializing a property.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeRawArrayWithJson:

Deserializes a raw array from JSON.
+ (NSMutableArray *)deserializeRawArrayWithJson:(NSString *)json

Parameters

json

A JSON-serialized raw array.

Return Value

An array of raw values.

Discussion

Deserializes a raw array from JSON.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeRawWithDataJson:

Deserializes a piece of raw JSON.
+ (NSString *)deserializeRawWithDataJson:(NSString *)dataJson

Parameters

dataJson

The raw data.

Return Value

The deserialized data.

Discussion

Deserializes a piece of raw JSON.

Declared In

FMIceLinkJsonSerializer.h

+ deserializeStringArrayWithArrayJson:

Deserializes a simple string array from JSON.
+ (NSMutableArray *)deserializeStringArrayWithArrayJson:(NSString *)arrayJson

Parameters

arrayJson

A JSON-serialized string array.

Return Value

An array of string values.

Discussion

Deserializes a simple string array from JSON.

Declared In

FMIceLinkJsonSerializer.h

Other Methods

+ deserializeStringWithValueJson:

Deserializes a string.
+ (NSString *)deserializeStringWithValueJson:(NSString *)valueJson

Parameters

valueJson

The string to deserialize.

Return Value

The deserialized string value.

Discussion

Deserializes a string.

Declared In

FMIceLinkJsonSerializer.h

+ escapeStringWithText:

Escapes any special characters in a string.
+ (NSString *)escapeStringWithText:(NSString *)text

Parameters

text

The string without escaped characters.

Return Value

The escaped string.

Discussion

Escapes any special characters in a string.

Declared In

FMIceLinkJsonSerializer.h

+ isValidJson:

Determines whether the specified JSON string is valid.
+ (bool)isValidJson:(NSString *)json

Parameters

json

The JSON string to validate.

Return Value

True if the JSON string is valid; false otherwise.

Discussion

Determines whether the specified JSON string is valid.

Declared In

FMIceLinkJsonSerializer.h

+ serializeBoolean:

Serializes a boolean value.
+ (NSString *)serializeBoolean:(FMIceLinkNullableBool *)value

Parameters

value

The boolean to serialize.

Return Value

The serialized boolean value.

Discussion

Serializes a boolean value.

Declared In

FMIceLinkJsonSerializer.h

+ serializeBooleanArray:

Serializes a boolean array to JSON.
+ (NSString *)serializeBooleanArray:(NSMutableArray *)array

Parameters

array

An array of boolean values.

Return Value

A JSON-serialized boolean array.

Discussion

Serializes a boolean array to JSON.

Declared In

FMIceLinkJsonSerializer.h

+ serializeDecimal:

Serializes a decimal value.
+ (NSString *)serializeDecimal:(FMIceLinkNullableDecimal *)value

Parameters

value

The decimal to serialize.

Return Value

The serialized decimal value.

Discussion

Serializes a decimal value.

Declared In

FMIceLinkJsonSerializer.h

+ serializeDecimalArray:

Serializes a decimal array to JSON.
+ (NSString *)serializeDecimalArray:(NSMutableArray *)array

Parameters

array

An array of decimal values.

Return Value

A JSON-serialized decimal array.

Discussion

Serializes a decimal array to JSON.

Declared In

FMIceLinkJsonSerializer.h

+ serializeDictionary:serializeValueCallback:

Serializes a dictionary into a JSON string.

The type of value stored in the dictionary.

+ (NSString *)serializeDictionary:(NSMutableDictionary<NSString*,id> *)dictionary serializeValueCallback:(FMIceLinkFunction1<id,NSString*> *)serializeValueCallback

Parameters

dictionary

The dictionary being serialized.

serializeValueCallback

The callback that serializes a value.

Return Value

The dictionary as a JSON string.

Discussion

Serializes a dictionary into a JSON string.

The type of value stored in the dictionary.

Declared In

FMIceLinkJsonSerializer.h

+ serializeDictionary:serializeValueCallbackBlock:

Serializes a dictionary into a JSON string.

The type of value stored in the dictionary.

+ (NSString *)serializeDictionary:(NSMutableDictionary<NSString*,id> *)dictionary serializeValueCallbackBlock:(NSString *( ^ ) ( id ))serializeValueCallbackBlock

Parameters

dictionary

The dictionary being serialized.

serializeValueCallbackBlock

The callback that serializes a value.

Return Value

The dictionary as a JSON string.

Discussion

Serializes a dictionary into a JSON string.

The type of value stored in the dictionary.

Declared In

FMIceLinkJsonSerializer.h

+ serializeDictionaryAndSerializeValueCallbackBlock

Serializes a dictionary into a JSON string.

The type of value stored in the dictionary. @inlineparam dictionary The dictionary being serialized. @inlineparam serializeValueCallbackBlock The callback that serializes a value.

+ (NSString *( ^ ) ( NSMutableDictionary<NSString*,id> *, NSString *( ^ ) ( id ) ))serializeDictionaryAndSerializeValueCallbackBlock

Return Value

The dictionary as a JSON string.

Discussion

Serializes a dictionary into a JSON string.

The type of value stored in the dictionary. @inlineparam dictionary The dictionary being serialized. @inlineparam serializeValueCallbackBlock The callback that serializes a value.

Declared In

FMIceLinkJsonSerializer.h

+ serializeDouble:

Serializes a double value.
+ (NSString *)serializeDouble:(FMIceLinkNullableDouble *)value

Parameters

value

The double to serialize.

Return Value

The serialized double value.

Discussion

Serializes a double value.

Declared In

FMIceLinkJsonSerializer.h

+ serializeDoubleArray:

Serializes a double array to JSON.
+ (NSString *)serializeDoubleArray:(NSMutableArray *)array

Parameters

array

An array of double values.

Return Value

A JSON-serialized double array.

Discussion

Serializes a double array to JSON.

Declared In

FMIceLinkJsonSerializer.h

+ serializeFloat:

Serializes a float value.
+ (NSString *)serializeFloat:(FMIceLinkNullableFloat *)value

Parameters

value

The float to serialize.

Return Value

The serialized float value.

Discussion

Serializes a float value.

Declared In

FMIceLinkJsonSerializer.h

+ serializeFloatArray:

Serializes a float array to JSON.
+ (NSString *)serializeFloatArray:(NSMutableArray *)array

Parameters

array

An array of float values.

Return Value

A JSON-serialized float array.

Discussion

Serializes a float array to JSON.

Declared In

FMIceLinkJsonSerializer.h

+ serializeGuid:

Serializes a globally unique identifier.
+ (NSString *)serializeGuid:(FMIceLinkNullableGuid *)value

Parameters

value

The GUID to serialize.

Return Value

The serialized GUID.

Discussion

Serializes a globally unique identifier.

Declared In

FMIceLinkJsonSerializer.h

+ serializeGuidArray:

Serializes a GUID array to JSON.
+ (NSString *)serializeGuidArray:(NSMutableArray *)array

Parameters

array

An array of GUID values.

Return Value

A JSON-serialized GUID array.

Discussion

Serializes a GUID array to JSON.

Declared In

FMIceLinkJsonSerializer.h

+ serializeInteger:

Serializes an integer value.
+ (NSString *)serializeInteger:(FMIceLinkNullableInt *)value

Parameters

value

The integer to serialize.

Return Value

The serialized integer value.

Discussion

Serializes an integer value.

Declared In

FMIceLinkJsonSerializer.h

+ serializeIntegerArray:

Serializes a integer array to JSON.
+ (NSString *)serializeIntegerArray:(NSMutableArray *)array

Parameters

array

An array of integer values.

Return Value

A JSON-serialized integer array.

Discussion

Serializes a integer array to JSON.

Declared In

FMIceLinkJsonSerializer.h

+ serializeLong:

Serializes a long value.
+ (NSString *)serializeLong:(FMIceLinkNullableLong *)value

Parameters

value

The long to serialize.

Return Value

The serialized long value.

Discussion

Serializes a long value.

Declared In

FMIceLinkJsonSerializer.h

+ serializeLongArray:

Serializes a long array to JSON.
+ (NSString *)serializeLongArray:(NSMutableArray *)array

Parameters

array

An array of long values.

Return Value

A JSON-serialized long array.

Discussion

Serializes a long array to JSON.

Declared In

FMIceLinkJsonSerializer.h

+ serializeObjectArrayWithObjects:serializer:

Serializes an object array into a JSON string.

The type of the object to serialize.

+ (NSString *)serializeObjectArrayWithObjects:(NSMutableArray *)objects serializer:(FMIceLinkFunction1<id,NSString*> *)serializer

Parameters

objects

The object array being serialized.

serializer

The callback used to serialize each item in the array.

Return Value

The object array as a JSON string.

Discussion

Serializes an object array into a JSON string.

The type of the object to serialize.

Declared In

FMIceLinkJsonSerializer.h

+ serializeObjectArrayWithObjects:serializerBlock:

Serializes an object array into a JSON string.

The type of the object to serialize.

+ (NSString *)serializeObjectArrayWithObjects:(NSMutableArray *)objects serializerBlock:(NSString *( ^ ) ( id ))serializerBlock

Parameters

objects

The object array being serialized.

serializerBlock

The callback used to serialize each item in the array.

Return Value

The object array as a JSON string.

Discussion

Serializes an object array into a JSON string.

The type of the object to serialize.

Declared In

FMIceLinkJsonSerializer.h

+ serializeObjectArrayWithObjectsAndSerializerBlock

Serializes an object array into a JSON string.

The type of the object to serialize. @inlineparam objects The object array being serialized. @inlineparam serializerBlock The callback used to serialize each item in the array.

+ (NSString *( ^ ) ( NSMutableArray *, NSString *( ^ ) ( id ) ))serializeObjectArrayWithObjectsAndSerializerBlock

Return Value

The object array as a JSON string.

Discussion

Serializes an object array into a JSON string.

The type of the object to serialize. @inlineparam objects The object array being serialized. @inlineparam serializerBlock The callback used to serialize each item in the array.

Declared In

FMIceLinkJsonSerializer.h

+ serializeObjectFastWithSource:callback:

Serializes a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) object into a JSON string.

The type of the object to serialize.

+ (NSString *)serializeObjectFastWithSource:(FMIceLinkSerializable *)source callback:(FMIceLinkAction2<FMIceLinkSerializable*,NSMutableDictionary<NSString*,NSString*> *> *)callback

Parameters

source

The object being serialized.

callback

The method used for serializing properties.

Return Value

The object as a JSON string.

Discussion

Serializes a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) object into a JSON string.

The type of the object to serialize.

Declared In

FMIceLinkJsonSerializer.h

+ serializeObjectFastWithSource:callbackBlock:

Serializes a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) object into a JSON string.

The type of the object to serialize.

+ (NSString *)serializeObjectFastWithSource:(FMIceLinkSerializable *)source callbackBlock:(void ( ^ ) ( FMIceLinkSerializable *, NSMutableDictionary<NSString*,NSString*> *))callbackBlock

Parameters

source

The object being serialized.

callbackBlock

The method used for serializing properties.

Return Value

The object as a JSON string.

Discussion

Serializes a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) object into a JSON string.

The type of the object to serialize.

Declared In

FMIceLinkJsonSerializer.h

+ serializeObjectFastWithSourceAndCallbackBlock

Serializes a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) object into a JSON string.

The type of the object to serialize. @inlineparam source The object being serialized. @inlineparam callbackBlock The method used for serializing properties.

+ (NSString *( ^ ) ( FMIceLinkSerializable *, void ( ^ ) ( FMIceLinkSerializable *, NSMutableDictionary<NSString*,NSString*> *) ))serializeObjectFastWithSourceAndCallbackBlock

Return Value

The object as a JSON string.

Discussion

Serializes a [FMIceLinkSerializable](../Classes/FMIceLinkSerializable.html) object into a JSON string.

The type of the object to serialize. @inlineparam source The object being serialized. @inlineparam callbackBlock The method used for serializing properties.

Declared In

FMIceLinkJsonSerializer.h

+ serializeObjectWithSource:callback:

Serializes an object into a JSON string.

The type of the object to serialize.

+ (NSString *)serializeObjectWithSource:(id)source callback:(FMIceLinkAction2<id,NSMutableDictionary<NSString*,NSString*> *> *)callback

Parameters

source

The object being serialized.

callback

The method used for serializing properties.

Return Value

The object as a JSON string.

Discussion

Serializes an object into a JSON string.

The type of the object to serialize.

Declared In

FMIceLinkJsonSerializer.h

+ serializeObjectWithSource:callbackBlock:

Serializes an object into a JSON string.

The type of the object to serialize.

+ (NSString *)serializeObjectWithSource:(id)source callbackBlock:(void ( ^ ) ( id , NSMutableDictionary<NSString*,NSString*> *))callbackBlock

Parameters

source

The object being serialized.

callbackBlock

The method used for serializing properties.

Return Value

The object as a JSON string.

Discussion

Serializes an object into a JSON string.

The type of the object to serialize.

Declared In

FMIceLinkJsonSerializer.h

+ serializeObjectWithSourceAndCallbackBlock

Serializes an object into a JSON string.

The type of the object to serialize. @inlineparam source The object being serialized. @inlineparam callbackBlock The method used for serializing properties.

+ (NSString *( ^ ) ( id , void ( ^ ) ( id , NSMutableDictionary<NSString*,NSString*> *) ))serializeObjectWithSourceAndCallbackBlock

Return Value

The object as a JSON string.

Discussion

Serializes an object into a JSON string.

The type of the object to serialize. @inlineparam source The object being serialized. @inlineparam callbackBlock The method used for serializing properties.

Declared In

FMIceLinkJsonSerializer.h

+ serializeRawArrayWithJsons:

Serializes a raw array to JSON.
+ (NSString *)serializeRawArrayWithJsons:(NSMutableArray *)jsons

Parameters

jsons

An array of raw values.

Return Value

A JSON-serialized raw array.

Discussion

Serializes a raw array to JSON.

Declared In

FMIceLinkJsonSerializer.h

+ serializeRawWithDataJson:

Serializes a piece of raw JSON.
+ (NSString *)serializeRawWithDataJson:(NSString *)dataJson

Parameters

dataJson

The raw data.

Return Value

The serialized data.

Discussion

Serializes a piece of raw JSON.

Declared In

FMIceLinkJsonSerializer.h

+ serializeString:

Serializes a string.
+ (NSString *)serializeString:(NSString *)value

Parameters

value

The string to serialize.

Return Value

The serialized string value.

Discussion

Serializes a string.

Declared In

FMIceLinkJsonSerializer.h

+ serializeStringArray:

Serializes a string array to JSON.
+ (NSString *)serializeStringArray:(NSMutableArray *)array

Parameters

array

An array of string values.

Return Value

A JSON-serialized string array.

Discussion

Serializes a string array to JSON.

Declared In

FMIceLinkJsonSerializer.h

+ trimQuotes:

Trims the quotes from a JavaScript string value.
+ (NSString *)trimQuotes:(NSString *)value

Parameters

value

The JavaScript string value.

Return Value

The string without quotes.

Discussion

Trims the quotes from a JavaScript string value.

Declared In

FMIceLinkJsonSerializer.h

+ unescapeStringWithText:

Unescapes any special characters from a string.
+ (NSString *)unescapeStringWithText:(NSString *)text

Parameters

text

The string with escaped characters.

Return Value

The unescaped string.

Discussion

Unescapes any special characters from a string.

Declared In

FMIceLinkJsonSerializer.h