title: Easy way to convert JSON to pyarrow schema
body: <p>Disclaimer: I'm new to apache parquet and pyarrow.  Is there is easy way to convert json to a pyarrow schema?  The json I'm working with is:</p>
  <pre><code>{
    &quot;_time&quot;: ${datetime},
    &quot;activity&quot;: ${event_id},
    &quot;activity_id&quot;: 6,
    &quot;category_name&quot;: &quot;Network Activity&quot;, 
    &quot;category_uid&quot;: 4,
    &quot;class_name&quot;: &quot;HTTP Activity&quot;, 
    &quot;class_uid&quot;: 4002,
    &quot;dst_endpoint&quot;: {
      &quot;ip&quot;: ${sip}
    },
    &quot;http_request&quot;: {
      &quot;hostname&quot;: ${host},
        &quot;url&quot;: {
          &quot;hostname&quot;: ${url_host},
          &quot;path&quot;: ${url_path},
          &quot;text&quot;: ${url}
        },
      &quot;user_agent&quot;: ${ua},
      &quot;version&quot;: ${reqversion}
    },
    &quot;http_response&quot;: {
      &quot;code&quot;: ${respcode}
    },
    &quot;metadata&quot;: {
      &quot;version&quot;: 1.0.0
    },
    &quot;severity&quot;: ${riskscore},
    &quot;severity_id&quot;: 0,
    &quot;src_endpoint&quot;: {
      &quot;ip&quot;: ${cip}
    },
    &quot;type_name&quot;: &quot;HTTP Activity: Traffic&quot;,
    &quot;type_uid&quot;: 400206
  }
  </code></pre>