SerializationExtensions Class

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Helper and extension methods for serializing and deserializing objects.

public static class SerializationExtensions
Inheritance:
System.Object → SerializationExtensions

Fields

DefaultJsonSerializerSettings Gets the default json serializer settings used by Weavy. Output is in snake_case and pretty printed (indented).
JavascriptSerializerSettings Gets a json serializer that uses camelCase suitable for Javascript.

Methods

Deserialize(Byte[]) Deserializes the specified byte array into an object graph.
Deserialize(Byte[]) Deserializes the specified byte array into an object graph.
DeserializeFromJson(String, JsonSerializerSettings) Deserializes the specified json string into an object graph.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.