Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version next

...

The Object data type can be the basis for entire JSON files. When JSON files are formatted in a way that can be parsed by the the 

D s webapp
, they can be converted into tabular format as part of the import process. If the preceding example is the entire file, the conversion process may display the dataset in the Transformer page as the following:

column1column2
TexasTX
New YorkNY
CaliforniaCA

For more information, see Working with JSON v2.

...

Depending on the use, it may be easier to work with your objects as String values. While Strings have no inherent structure, they do have a wide range of functions that you can use to find and extract information from the values. Some useful functions:

FunctionDescription
FIND Function

D excerpt include
pageFIND Function
nopaneltrue

RIGHTFIND Function

D excerpt include
pageRIGHTFIND Function
nopaneltrue

FINDNTH Function

D excerpt include
pageFINDNTH Function
nopaneltrue

SUBSTITUTE Function

D excerpt include
pageSUBSTITUTE Function
nopaneltrue

Unnest Objects

You can unnest the object data type to create new rows or columns based on the keys in the source data. The following example shows how to unnest object values into separate columns.

...