
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Parse JSON Column in Data Load Editor
I am loading data from a SQL server that has a json column in it. I have not had any success doing this. Here is what one of the fields looks like.
{"Frequency":"Monthly","Estimated_Hours_to_prepare":"3","Estimated_Hours_Per_Workday":""}
I have tried the following with no success
Select JSON_VALUE(ExtendedProperties, "$.Frequency") As Frequency
From SQLDB
Select *
From SQLDB s
CROSS APPLY OPENJSON(s.ExtendedProperties)
WITH (Frequency varchar(100))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Mike,
You can parse it with From_Field function.
JsonTable:
LOAD * INLINE [
JsonData
'{"Frequency":"Monthly","Estimated_Hours_to_prepare":"3","Estimated_Hours_Per_Workday":""}'
];
LOAD * From_Field(JsonTable, JsonData) (json, utf8, no labels);
It does not work properly when JSON is nested.
I hope it solves your issue.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry I am not able to get this work. This is a partial of my current load script. Can you share with me where I would place your code? The JSON field from SQL DB is called ExtendedProperities. Thank you
Load
ItemID,
Description,
ClosedDate,
ExtendedProperities;
[WorkItems]:
Select
ItemID,
Description,
ClosedDate,
ExtendedProperities
From SQLDB;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Load
ItemID,
Description,
ClosedDate,
ExtendedProperities;
[WorkItems]:
Select
ItemID,
Description,
ClosedDate,
ExtendedProperities
From SQLDB;
LOAD * From_Field(WorkItems, ExtendedProperities) (json, utf8, no labels);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I try doing what you suggested I get the following error:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get the following error when I use the From_Field function:
This is my code:
Any help is appreciated!
