title: How to write a JSON into a Avro Schema in NiFi
body: <p>I want to write a Avro schema. The JSON is like this.</p>
  <pre><code>{
  &quot;manager&quot;: {
      &quot;employeeId&quot;: &quot;ref-456&quot;,
      &quot;name&quot;: &quot;John Doe&quot;
    }
  }
  </code></pre>
  <p>This is the schema I written. But it's wrong. How can I change it to the right thing?</p>
  <pre><code>{
      &quot;namespace&quot;:&quot;nifi&quot;,
      &quot;name&quot;:&quot;store_event&quot;,
      &quot;type&quot;:&quot;record&quot;,
      &quot;fields&quot;:[ {
          &quot;name&quot; : &quot;manager&quot;,
          &quot;type&quot; : [
              {&quot;name&quot;:&quot;employeeId&quot;, &quot;type&quot;:&quot;string&quot;},
              {&quot;name&quot;:&quot;name&quot;, &quot;type&quot;:&quot;string&quot;}
          ]   
      }       
          
      ]
  }
  
  </code></pre>
  <pre><code></code></pre>