1. {
  2.     "type" : "record",
  3.     "name" : "master",
  4.     "fields" : [{
  5.             "name" : "FOO",
  6.             "type" : ["null", {
  7.                     "type" : "map",
  8.                     "values" : {
  9.                         "type" : "record",
  10.                         "name" : "foo",
  11.                         "fields" : [{
  12.                                 "name" : "config",
  13.                                 "type" : {
  14.                                     "name" : "configData",
  15.                                     "type" : "record",
  16.                                     "fields" : [{
  17.                                             "name" : "foo1",
  18.                                             "type" : ["string", "null"]
  19.                                         }, {
  20.                                             "name" : "foo2",
  21.                                             "type" : ["string", "null"]
  22.                                         }, {
  23.                                             "name" : "foo3",
  24.                                             "type" : ["string", "null"]
  25.                                         }
  26.                                     ]
  27.                                 }
  28.                             }, {
  29.                                 "name" : "status",
  30.                                 "type" : {
  31.                                     "name" : "statusData",
  32.                                     "type" : "record",
  33.                                     "fields" : [{
  34.                                             "name" : "foo4",
  35.                                             "type" : ["long", "null"]
  36.                                         }
  37.                                     ]
  38.                                 }
  39.                             }, {
  40.                                 "name" : "meta",
  41.                                 "type" : {
  42.                                     "name" : "metaData",
  43.                                     "type" : "record",
  44.                                     "fields" : [{
  45.                                             "name" : "crc",
  46.                                             "type" : "string"
  47.                                         }, {
  48.                                             "name" : "foo6",
  49.                                             "type" : "long",
  50.                                             "default" : "0"
  51.                                         }, {
  52.                                             "name" : "foo7",
  53.                                             "type" : ["string", "null"]
  54.                                         }, {
  55.                                             "name" : "foo8",
  56.                                             "type" : ["string", "null"]
  57.                                         }
  58.                                     ]
  59.                                 }
  60.                             }
  61.                         ]
  62.                     }
  63.                 }
  64.             ]
  65.         }, {
  66.             "name" : "BAR",
  67.             "type" : ["null", {
  68.                     "type" : "map",
  69.                     "values" : {
  70.                         "type" : "record",
  71.                         "name" : "bar",
  72.                         "fields" : [{
  73.                                 "name" : "config",
  74.                                 "type" : {
  75.                                     "name" : "configData",
  76.                                     "type" : "record",
  77.                                     "fields" : [{
  78.                                             "name" : "bafr1",
  79.                                             "type" : ["double", "null"]
  80.                                         }, {
  81.                                             "name" : "bar2",
  82.                                             "type" : "long"
  83.                                         }, {
  84.                                             "name" : "bar3",
  85.                                             "type" : ["string", "null"]
  86.                                         }, {
  87.                                             "name" : "bar4",
  88.                                             "type" : ["string", "null"]
  89.                                         }
  90.                                     ]
  91.                                 }
  92.                             }, {
  93.                                 "name" : "meta",
  94.                                 "type" : {
  95.                                     "name" : "metaData",
  96.                                     "type" : "record",
  97.                                     "fields" : [{
  98.                                             "name" : "bar5",
  99.                                             "type" : "string"
  100.                                         }, {
  101.                                             "name" : "bar6",
  102.                                             "type" : "long",
  103.                                             "default" : "0"
  104.                                         }, {
  105.                                             "name" : "bar7",
  106.                                             "type" : ["string", "null"]
  107.                                         }, {
  108.                                             "name" : "bar8",
  109.                                             "type" : ["string", "null"]
  110.                                         }
  111.                                     ]
  112.                                 }
  113.                             }
  114.                         ]
  115.                     }
  116.                 }
  117.             ]
  118.         }
  119.     ]
  120. }