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... | |
|
static |
Converts a JSON string to an array of instances of SerializedCurvySpline
json | The JSON to deserialize |
|
static |
Converts a JSON string to a spline
json | The JSON to deserialize |
coordinatesSpace | How to interpret the coordinates in the JSON: local ones or global ones? |
|
static |
Converts a JSON string to an array of splines
json | The JSON to deserialize |
coordinatesSpace | How to interpret the coordinates in the JSON: local ones or global ones? |
|
static |
Converts splines to a JSON string
splines | The splines to serialize |
coordinatesSpace | What coordinates of the spline should be serialized: local ones or global ones? |
prettify | Set to true to make the JSON string easy to read. If false, the spline will be compacted to make it small |
|
static |
Converts a spline to a JSON string
spline | The spline to serialize |
coordinatesSpace | What coordinates of the spline should be serialized: local ones or global ones? |
prettify | Set to true to make the JSON string easy to read. If false, the spline will be compacted to make it small |