Creating a Data Object from a JSON or XML Data Source
Creating a Data Object from a JSON or XML Data Source
You can create a flat file data object or complex file data object from a JSON or XML data source.
In the
Object Explorer
view in the Developer tool, select the project where you want to create the data object and column profile.
Click
File
New
Data Object
.
The
New
dialog box appears.
You can choose to create a flat file data object or complex file data object.
To create a flat file data object, perform the following tasks:
Select
Physical Data Objects
Flat File Data Object
, and click
Next
.
The
New Flat File Data Object
dialog box appears.
Select
Create from an Existing Flat File
, and click
Browse
to choose the text file. Click
Next
.
Verify that the code page is
MS Windows Latin 1 (ANSI), superset of Latin 1
, and the format is delimited. Click
Next
.
Verify that the delimiter is set to
comma
. Click
Finish
.
To create a complex file data object, perform the following tasks:
Select
Physical Data Objects
Complex File Data Object
, and click
Next
.
The
New Complex File Data Object
dialog box appears.
Enter a name for the data object. Select the access type as
File
.
Click
Browse
to choose a JSON or XML file. Click
Finish
.
When the Developer server is in Linux, you must update the file path of the data source to the location in the server. To update the file path, select the complex file data object, click