Flattening JSON data
Nested JSON data must be "flattened" to be used in Datasmells. You can do this one of two ways: using JSONata or Handlebars.
{
"CustomerName": "Big Co",
"Contacts": [
{
"FirstName": "John",
"LastName": "Smith"
},
{
"FirstName": "Amy",
"LastName": "Jones"
}
]
}[
{
"CustomerName": "Big Co",
"FirstName": "John",
"LastName": "Smith"
},
{
"CustomerName": "Big Co",
"FirstName": "Amy",
"LastName": "Jones"
}
]Should I use JSONata or Handlebars?
How we write arrays of data to Parquet files
Merging arrays
Iteration level
Last updated
Was this helpful?