Skip to content

Convert JSON to use features array #64

@jbutcher21

Description

@jbutcher21

Summary

The JSONL data files in truthsets/demo/ currently use the flat/legacy JSON structure. Convert them to use the recommended FEATURES array format per the Senzing Entity Specification.

Files to convert

  • truthsets/demo/customers.jsonl
  • truthsets/demo/reference.jsonl
  • truthsets/demo/watchlist.jsonl

Example

Before (flat):

{
  "DATA_SOURCE": "CUSTOMERS",
  "RECORD_ID": "1001",
  "RECORD_TYPE": "PERSON",
  "PRIMARY_NAME_LAST": "Smith",
  "PRIMARY_NAME_FIRST": "Robert",
  "DATE_OF_BIRTH": "12/11/1978",
  "ADDR_LINE1": "123 Main Street, Las Vegas NV 89132"
}

After (FEATURES array):

{
  "DATA_SOURCE": "CUSTOMERS",
  "RECORD_ID": "1001",
  "FEATURES": [
    {"RECORD_TYPE": "PERSON"},
    {"NAME_LAST": "Smith", "NAME_FIRST": "Robert"},
    {"DATE_OF_BIRTH": "12/11/1978"},
    {"ADDR_LINE1": "123 Main Street, Las Vegas NV 89132"}
  ]
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions