title: Config file to define JSON Schema Structure in PySpark
body: <p>I have created a PySpark application that reads the JSON file in a dataframe through a defined Schema. code sample below</p>
  
  <pre><code>schema = StructType([
      StructField("domain", StringType(), True),
       StructField("timestamp", LongType(), True),                            
  ])
  df= sqlContext.read.json(file, schema)
  </code></pre>
  
  <p>I need a way to find how can I define this schema in a kind of config or ini file etc. And read that in the main the PySpark application.</p>
  
  <p>This will help me to modify schema for the changing JSON if there is any need in future without changing the main PySpark code.</p>