title: Convert Json Object To SQL Table
body: <p>I want to generate sql query dynamically. I found this tool </p>
  
  <pre><code>  http://querybuilder.js.org/demo.html
  </code></pre>
  
  <p>And i have the following JSON object:</p>
  
  <pre><code>{
    "condition": "AND",
    "rules": [
      {
        "id": "name",
        "field": "name",
        "type": "string",
        "input": "text",
        "operator": "equal",
        "value": "zura"
      },
      {
        "condition": "OR",
        "rules": [
          {
            "id": "category",
            "field": "category",
            "type": "integer",
            "input": "select",
            "operator": "equal",
            "value": "1"
          },
          {
            "id": "price",
            "field": "price",
            "type": "double",
            "input": "number",
            "operator": "equal",
            "value": "123"
          }
        ]
      },
      {
        "id": "in_stock",
        "field": "in_stock",
        "type": "integer",
        "input": "radio",
        "operator": "equal",
        "value": "1"
      },
      {
        "condition": "AND",
        "rules": [
          {
            "id": "category",
            "field": "category",
            "type": "integer",
            "input": "select",
            "operator": "equal",
            "value": "2"
          },
          {
            "id": "in_stock",
            "field": "in_stock",
            "type": "integer",
            "input": "radio",
            "operator": "equal",
            "value": "0"
          }
        ]
      }
    ]
  }
  </code></pre>
  
  <p>Now i want to generate SQL Table in order to save this JSON data properly. 
  Is there any way to generate Table, if yes please give me link or please help me to create same table</p>