Share via


Functions.FromJson Method

Definition

Overloads

FromJson(Column, Column, Dictionary<String,String>)

Parses a column containing a JSON string into a StructType or ArrayType of StructTypes with the specified schema.

FromJson(Column, String, Dictionary<String,String>)

Parses a column containing a JSON string into a StructType or ArrayType of StructTypes with the specified schema.

FromJson(Column, Column, Dictionary<String,String>)

Parses a column containing a JSON string into a StructType or ArrayType of StructTypes with the specified schema.

[Microsoft.Spark.Since("2.4.0")]
public static Microsoft.Spark.Sql.Column FromJson (Microsoft.Spark.Sql.Column column, Microsoft.Spark.Sql.Column schema, System.Collections.Generic.Dictionary<string,string> options = default);
[<Microsoft.Spark.Since("2.4.0")>]
static member FromJson : Microsoft.Spark.Sql.Column * Microsoft.Spark.Sql.Column * System.Collections.Generic.Dictionary<string, string> -> Microsoft.Spark.Sql.Column
Public Shared Function FromJson (column As Column, schema As Column, Optional options As Dictionary(Of String, String) = Nothing) As Column

Parameters

column
Column

String column containing JSON data

schema
Column

The schema to use when parsing the JSON string

options
Dictionary<String,String>

Options for JSON parsing

Returns

Column object

Attributes

Applies to

FromJson(Column, String, Dictionary<String,String>)

Parses a column containing a JSON string into a StructType or ArrayType of StructTypes with the specified schema.

public static Microsoft.Spark.Sql.Column FromJson (Microsoft.Spark.Sql.Column column, string schema, System.Collections.Generic.Dictionary<string,string> options = default);
static member FromJson : Microsoft.Spark.Sql.Column * string * System.Collections.Generic.Dictionary<string, string> -> Microsoft.Spark.Sql.Column
Public Shared Function FromJson (column As Column, schema As String, Optional options As Dictionary(Of String, String) = Nothing) As Column

Parameters

column
Column

Column to apply

schema
String

JSON format string or DDL-formatted string for a schema

options
Dictionary<String,String>

Options for JSON parsing

Returns

Column object

Applies to