Json File.To Json Method
Definition
Namespace: Extreme.Data.Json
Assembly: Extreme.Data.Json (in Extreme.Data.Json.dll) Version: 3.1.1
Assembly: Extreme.Data.Json (in Extreme.Data.Json.dll) Version: 3.1.1
Overload List
ToJson<T>(Matrix<T>, JsonOptions) | Returns a string containing a matrix in JSON format. |
ToJson<T>(Matrix<Complex<T>>, JsonOptions) | Returns a string containing a complex matrix in JSON format. |
ToJson<T>(Vector<T>, JsonOptions) | Returns a string containing a vector in JSON format. |
ToJson<T>(Vector<Complex<T>>, JsonOptions) | Returns a string containing a complex vector in JSON format. |
ToJson<R, C>(DataFrame<R, C>, JsonOptions) | Returns a string containing the data frame in JSON format. |
ToJson<R, C>(DataFrame<R, C>, JsonOptions)
Returns a string containing the data frame in JSON format.
public static string ToJson<R, C>(
this DataFrame<R, C> dataFrame,
JsonOptions options = null
)
Parameters
- dataFrame DataFrame<R, C>
- The data frame to write to the stream.
- options JsonOptions (Optional)
- A JsonOptions object that specifies the options to use when reading the file.
Type Parameters
- R
- The type of the row keys of the data frame.
- C
- The type of the column keys of the data frame.
Return Value
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type DataFrame<R, C>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).ToJson<T>(Matrix<T>, JsonOptions)
Returns a string containing a matrix in JSON format.
public static string ToJson<T>(
this Matrix<T> matrix,
JsonOptions options = null
)
Parameters
- matrix Matrix<T>
- The matrix to write to the stream.
- options JsonOptions (Optional)
- A JsonOptions object that specifies the options to use when reading the file.
Type Parameters
- T
- The element type of the matrix.
Return Value
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Matrix<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).ToJson<T>(Matrix<Complex<T>>, JsonOptions)
Returns a string containing a complex matrix in JSON format.
public static string ToJson<T>(
this Matrix<Complex<T>> matrix,
JsonOptions options = null
)
Parameters
- matrix Matrix<Complex<T>>
- The matrix to write to the stream.
- options JsonOptions (Optional)
- A JsonOptions object that specifies the options to use when reading the file.
Type Parameters
- T
- The element type of the matrix.
Return Value
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Matrix<Complex<T>>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).ToJson<T>(Vector<T>, JsonOptions)
Returns a string containing a vector in JSON format.
public static string ToJson<T>(
this Vector<T> vector,
JsonOptions options = null
)
Parameters
- vector Vector<T>
- The vector to write to the stream.
- options JsonOptions (Optional)
- A JsonOptions object that specifies the options to use when reading the file.
Type Parameters
- T
- The element type of the vector.
Return Value
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).ToJson<T>(Vector<Complex<T>>, JsonOptions)
Returns a string containing a complex vector in JSON format.
public static string ToJson<T>(
this Vector<Complex<T>> vector,
JsonOptions options = null
)
Parameters
- vector Vector<Complex<T>>
- The vector to write to the stream.
- options JsonOptions (Optional)
- A JsonOptions object that specifies the options to use when reading the file.
Type Parameters
- T
- The element type of the vector.