2022.2

Table Of Contents
l
TheboxbelowthefilenameallowstopasteorenterJSONdata.AfteropeningaJSONfilethe
JSONdatawillappearinthisbox.YoucanreviewandedittheJSON.
ForthetypesofJSONthatareaccepted,seebelow.
l
Replace Data Model:SelectingtheReplaceDataModeloptionremovestheexistingData
ModelfromthetemplateandcreatesanewDataModelbasedonthekeysfoundintheJSON.
Whenthisoptionisnotchecked,theJSONdataismappedtoanycorrespondingfieldsinthe
existingDataModel,anddatathatdoesnotcorrespondtoanyfieldisdiscarded.
Note: Ifadatamappingconfigurationisopenatthesametime,theloadedJSONwill
alwaysreplacetheDataModelandnovalueswillbeimported.
l
Finish:IftheJSONisvalid,youmayclickFinishtoimportthedataintotheDataModelpane.
Arraysofobjectsareconvertedtorecords(ordetailtables);key-valuepairsareconvertedtodata
fields.
Note: TheJSONSampleDataisnotstoredwiththetemplate.Inordertoreusethedatayou
shouldcreateaJSONfileondiskandloaditviatheFileoptioninthisdialog.
Types of JSON data
YoucanaddthefollowingtypesofJSONdata:
l
A JSON object or an array of JSON objectsrepresentingrecords.Thedatatypeisderived
fromthedata:
l
AnyvaluesurroundedwithquotesisconvertedtoafieldoftypeString.
l
AnynumericvaluecontainingaperiodisconvertedtoafieldoftypeFloat.
l
AnynumericvaluethatdoesnotcontainaperiodisconvertedtoafieldoftypeInteger.
l
Avalue"true"or"false"isconvertedtoafieldoftypeBoolean.
l
Typed JSON.ThisJSONfollowsthestructureofaJSONRecordDataList(seetheRESTAPI
Cookbook).FieldtypesaredeterminedbytheschemaobjectintheJSON.
AnynestedJSONobjectsaredisplayedonsuccessivelevelsintheDataModel.
Examples
Example: Asinglerecordwithtwofields
{ "first": "Peter", "last": "Parker" }
Page 892