FMLiveSwitchSerializer Class Reference

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. More...

Instance Methods

(instancetype) - init
 

Class Methods

(FMLiveSwitchSerializer *) + serializer
 
- Class Methods inherited from FMLiveSwitchJsonSerializer
(NSMutableArray *) + deserializeBooleanArrayWithArrayJson:
 Deserializes a boolean array from JSON. More...
 
(FMLiveSwitchNullableBool *) + deserializeBooleanWithValueJson:
 Deserializes a boolean value. More...
 
(NSMutableArray *) + deserializeDecimalArrayWithArrayJson:
 Deserializes a decimal array from JSON. More...
 
(FMLiveSwitchNullableDecimal *) + deserializeDecimalWithValueJson:
 Deserializes a decimal value. More...
 
(NSMutableDictionary< NSString *, id > *) + deserializeDictionaryWithDictionaryJson:createDictionaryCallback:deserializeValueCallback:
 Deserializes a JSON string into a dictionary. More...
 
(NSMutableDictionary< NSString *, id > *) + deserializeDictionaryWithDictionaryJson:createDictionaryCallbackBlock:deserializeValueCallbackBlock:
 Deserializes a JSON string into a dictionary. More...
 
(NSString *) + deserializeDictionaryWithDictionaryJsonAndCreateDictionaryCallbackBlockAndDeserializeValueCallbackBlock
 Deserializes a JSON string into a dictionary. More...
 
(NSMutableArray *) + deserializeDoubleArrayWithArrayJson:
 Deserializes a double array from JSON. More...
 
(FMLiveSwitchNullableDouble *) + deserializeDoubleWithValueJson:
 Deserializes a double value. More...
 
(NSMutableArray *) + deserializeFloatArrayWithArrayJson:
 Deserializes a float array from JSON. More...
 
(FMLiveSwitchNullableFloat *) + deserializeFloatWithValueJson:
 Deserializes a float value. More...
 
(NSMutableArray *) + deserializeGuidArrayWithArrayJson:
 Deserializes a GUID array from JSON. More...
 
(FMLiveSwitchNullableGuid *) + deserializeGuidWithValueJson:
 Deserializes a globally unique identifier. More...
 
(NSMutableArray *) + deserializeIntegerArrayWithArrayJson:
 Deserializes a integer array from JSON. More...
 
(FMLiveSwitchNullableInt *) + deserializeIntegerWithValueJson:
 Deserializes an integer value. More...
 
(NSMutableArray *) + deserializeLongArrayWithArrayJson:
 Deserializes a long array from JSON. More...
 
(FMLiveSwitchNullableLong *) + deserializeLongWithValueJson:
 Deserializes a long value. More...
 
(NSMutableArray< id > *) + deserializeObjectArrayWithJson:deserializer:
 Deserializes a JSON string into an array of target object types. More...
 
(NSMutableArray< id > *) + deserializeObjectArrayWithJson:deserializerBlock:
 Deserializes a JSON string into an array of target object types. More...
 
(NSString *) + deserializeObjectArrayWithJsonAndDeserializerBlock
 Deserializes a JSON string into an array of target object types. More...
 
(FMLiveSwitchSerializable *) + deserializeObjectFastWithJson:creator:callback:
 Deserializes a JSON string into a FMLiveSwitchSerializable target object type. More...
 
(FMLiveSwitchSerializable *) + deserializeObjectFastWithJson:creatorBlock:callbackBlock:
 Deserializes a JSON string into a FMLiveSwitchSerializable target object type. More...
 
(FMLiveSwitchSerializable *, NSString *, NSString *) + deserializeObjectFastWithJsonAndCreatorBlockAndCallbackBlock
 Deserializes a JSON string into a FMLiveSwitchSerializable target object type. More...
 
(id+ deserializeObjectWithJson:creator:callback:
 Deserializes a JSON string into a target object type. More...
 
(id+ deserializeObjectWithJson:creatorBlock:callbackBlock:
 Deserializes a JSON string into a target object type. More...
 
(id, NSString *, NSString *) + deserializeObjectWithJsonAndCreatorBlockAndCallbackBlock
 Deserializes a JSON string into a target object type. More...
 
(NSMutableArray< NSString * > *) + deserializeRawArrayWithJson:
 Deserializes a raw array from JSON. More...
 
(NSString *) + deserializeRawWithDataJson:
 Deserializes a piece of raw JSON. More...
 
(NSMutableArray *) + deserializeStringArrayWithArrayJson:
 Deserializes a simple string array from JSON. More...
 
(NSString *) + deserializeStringWithValueJson:
 Deserializes a string. More...
 
(NSString *) + escapeStringWithText:
 Escapes any special characters in a string. More...
 
(bool) + isValidJson:
 Determines whether the specified JSON string is valid. More...
 
(FMLiveSwitchJsonSerializer *) + jsonSerializer
 
(NSString *) + serializeBoolean:
 Serializes a boolean value. More...
 
(NSString *) + serializeBooleanArray:
 Serializes a boolean array to JSON. More...
 
(NSString *) + serializeDecimal:
 Serializes a decimal value. More...
 
(NSString *) + serializeDecimalArray:
 Serializes a decimal array to JSON. More...
 
(NSString *) + serializeDictionary:serializeValueCallback:
 Serializes a dictionary into a JSON string. More...
 
(NSString *) + serializeDictionary:serializeValueCallbackBlock:
 Serializes a dictionary into a JSON string. More...
 
(id+ serializeDictionaryAndSerializeValueCallbackBlock
 Serializes a dictionary into a JSON string. More...
 
(NSString *) + serializeDouble:
 Serializes a double value. More...
 
(NSString *) + serializeDoubleArray:
 Serializes a double array to JSON. More...
 
(NSString *) + serializeFloat:
 Serializes a float value. More...
 
(NSString *) + serializeFloatArray:
 Serializes a float array to JSON. More...
 
(NSString *) + serializeGuid:
 Serializes a globally unique identifier. More...
 
(NSString *) + serializeGuidArray:
 Serializes a GUID array to JSON. More...
 
(NSString *) + serializeInteger:
 Serializes an integer value. More...
 
(NSString *) + serializeIntegerArray:
 Serializes a integer array to JSON. More...
 
(NSString *) + serializeLong:
 Serializes a long value. More...
 
(NSString *) + serializeLongArray:
 Serializes a long array to JSON. More...
 
(NSString *) + serializeObjectArrayWithObjects:serializer:
 Serializes an object array into a JSON string. More...
 
(NSString *) + serializeObjectArrayWithObjects:serializerBlock:
 Serializes an object array into a JSON string. More...
 
(id+ serializeObjectArrayWithObjectsAndSerializerBlock
 Serializes an object array into a JSON string. More...
 
(NSString *) + serializeObjectFastWithSource:callback:
 Serializes a FMLiveSwitchSerializable object into a JSON string. More...
 
(NSString *) + serializeObjectFastWithSource:callbackBlock:
 Serializes a FMLiveSwitchSerializable object into a JSON string. More...
 
(FMLiveSwitchSerializable *, NSMutableDictionary< NSString *, NSString * > *) + serializeObjectFastWithSourceAndCallbackBlock
 Serializes a FMLiveSwitchSerializable object into a JSON string. More...
 
(NSString *) + serializeObjectWithSource:callback:
 Serializes an object into a JSON string. More...
 
(NSString *) + serializeObjectWithSource:callbackBlock:
 Serializes an object into a JSON string. More...
 
(id, NSMutableDictionary< NSString *, NSString * > *) + serializeObjectWithSourceAndCallbackBlock
 Serializes an object into a JSON string. More...
 
(NSString *) + serializeRawArrayWithJsons:
 Serializes a raw array to JSON. More...
 
(NSString *) + serializeRawWithDataJson:
 Serializes a piece of raw JSON. More...
 
(NSString *) + serializeString:
 Serializes a string. More...
 
(NSString *) + serializeStringArray:
 Serializes a string array to JSON. More...
 
(NSString *) + trimQuotes:
 Trims the quotes from a JavaScript string value. More...
 
(NSString *) + unescapeStringWithText:
 Unescapes any special characters from a string. More...
 

Detailed Description

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.

Method Documentation

◆ init

- (instancetype) init

◆ serializer

+ (FMLiveSwitchSerializer*) serializer