JsonInterface.SerializeToFile(Structure, String, Variable) Method

Top 

Description

Specifies whether or not to generate JSON data with new lines and indentation.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

JsonInterface.SerializeToFile(

Structure structure,


String filename,


Variable format)

 

 

Arguments

structure


Description:

Structure to serialize.

 

 

filename


Description:

Filename to contain the serialized json data.

 

 

format


Description:

Specifies whether or not to generate JSON data with new lines and indentation.

Valid Values:

Value

Label

0

Concise

1

Formatted

 

 

 

 

Return Value

Type:

string

 

 

Returns the serialized form of the specified Structure.

 

Syntax

myString1 = myJsonInterface1.SerializeToFile(myStructure1, myString2, myVariable1);

 

 

See also

JsonInterface Object

JsonInterface.SerializeToFile

JSON-Formatted Data Guide