DDL: A Data Description Language

DDL: A Data Description Language

DDL is an acronym for Data Description Language. DDL defines rule for encoding hierarchical data in a format which is both human-readable and machine-readable.

The following is an example of valid DDL

{
  prename: "John",
  surname: "Doe",

  alive: true,

  age: 27,
  
  addresses: [
    {
      streetAddress : "21 2nd Street",
      city : "New York",
      state : "NY",
      postalCode : "10021-3100",
    },
  ],
  
  phoneNumbers: [
    {
      type : "home",
      number : "212 555-1234",
    },
    {
      type : "office",
      number : "646 555-4567",
    },
  ],
  
  children: [],
  spouse: void
}

Leave a comment

Your email address will not be published. Required fields are marked *