title: JSON to Avro conversion using Java
body: <p>I want to convert JSON data into Avro file. So how can I do it through Java API/code?</p>
  
  <p>My sample JSON file is:</p>
  
  <pre><code>[
    {
      "ProductID": "101.0",
      "Id": "1.0",
      "OrderID": "1111.0",
      "Name": "John"
    },
    {
      "ProductID": "102.0",
      "Id": "2.0",
      "OrderID": "2222.0",
      "Name": "Taylor"
    }
  ]
  </code></pre>
  
  <p>So 1st thing, how can I create Avro schema file from JSON file?</p>
  
  <p>Secondly, after creating Avro schema, how to convert it into Avro file?</p>