Curvy  8.3.0
SplineJsonConverter Class Reference

Detailed Description

Converts splines to JSON strings, and vice versa

Static Public Member Functions

static SerializedCurvySpline[] JsonToSerializedSplines ([NotNull] string json)
 Converts a JSON string to an array of instances of SerializedCurvySpline More...
 
static CurvySpline JsonToSpline (string json, CurvySerializationSpace coordinatesSpace=CurvySerializationSpace.Global)
 Converts a JSON string to a spline More...
 
static CurvySpline[] JsonToSplines (string json, CurvySerializationSpace coordinatesSpace=CurvySerializationSpace.Global)
 Converts a JSON string to an array of splines More...
 
static string SplinesToJson (IEnumerable< CurvySpline > splines, CurvySerializationSpace coordinatesSpace=CurvySerializationSpace.Global, bool prettify=true)
 Converts splines to a JSON string More...
 
static string SplineToJson (CurvySpline spline, CurvySerializationSpace coordinatesSpace=CurvySerializationSpace.Global, bool prettify=true)
 Converts a spline to a JSON string More...
 

Member Function Documentation

static SerializedCurvySpline [] JsonToSerializedSplines ( [NotNull] string  json)
static

Converts a JSON string to an array of instances of SerializedCurvySpline

Parameters
jsonThe JSON to deserialize
static CurvySpline JsonToSpline ( string  json,
CurvySerializationSpace  coordinatesSpace = CurvySerializationSpace.Global 
)
static

Converts a JSON string to a spline

Parameters
jsonThe JSON to deserialize
coordinatesSpaceHow to interpret the coordinates in the JSON: local ones or global ones?
static CurvySpline [] JsonToSplines ( string  json,
CurvySerializationSpace  coordinatesSpace = CurvySerializationSpace.Global 
)
static

Converts a JSON string to an array of splines

Parameters
jsonThe JSON to deserialize
coordinatesSpaceHow to interpret the coordinates in the JSON: local ones or global ones?
static string SplinesToJson ( IEnumerable< CurvySpline splines,
CurvySerializationSpace  coordinatesSpace = CurvySerializationSpace.Global,
bool  prettify = true 
)
static

Converts splines to a JSON string

Parameters
splinesThe splines to serialize
coordinatesSpaceWhat coordinates of the spline should be serialized: local ones or global ones?
prettifySet to true to make the JSON string easy to read. If false, the spline will be compacted to make it small
static string SplineToJson ( CurvySpline  spline,
CurvySerializationSpace  coordinatesSpace = CurvySerializationSpace.Global,
bool  prettify = true 
)
static

Converts a spline to a JSON string

Parameters
splineThe spline to serialize
coordinatesSpaceWhat coordinates of the spline should be serialized: local ones or global ones?
prettifySet to true to make the JSON string easy to read. If false, the spline will be compacted to make it small

The documentation for this class was generated from the following file: