Functions.FromJson Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromJson(Column, Column, Dictionary<String,String>) |
Parses a column containing a JSON string into a |
FromJson(Column, String, Dictionary<String,String>) |
Parses a column containing a JSON string into a |
FromJson(Column, Column, Dictionary<String,String>)
Parses a column containing a JSON string into a StructType
or ArrayType
of StructType
s 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 StructType
s 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