title: How to convert a JSON into properties file in java?
body: <p>I have JSON string and want to convert into java properties file.
  Note: JSON can be in JSON string, object or file.
  Sample JSON:</p>
  <pre><code>{
      &quot;simianarmy&quot;: {
          &quot;chaos&quot;: {
              &quot;enabled&quot;: &quot;true&quot;,
              &quot;leashed&quot;: &quot;false&quot;,
              &quot;ASG&quot;: {
                  &quot;enabled&quot;: &quot;false&quot;,
                  &quot;probability&quot;: &quot;6.0&quot;,
                  &quot;maxTerminationsPerDay&quot;: &quot;10.0&quot;,
                  &quot;IS&quot;: {
                      &quot;enabled&quot;: &quot;true&quot;,
                      &quot;probability&quot;: &quot;6&quot;,
                      &quot;maxTerminationsPerDay&quot;: &quot;100.0&quot;
                  }
              }
          }
      }
  }
  
   **OUTPUT SHOULD BE:-**
  simianarmy.chaos.enabled=true
  simianarmy.chaos.leashed=false
  simianarmy.chaos.ASG.enabled=false
  simianarmy.chaos.ASG.probability=6.0
  simianarmy.chaos.ASG.maxTerminationsPerDay=10.0
  simianarmy.chaos.ASG.IS.enabled=true
  simianarmy.chaos.ASG.IS.probability=6
  simianarmy.chaos.ASG.IS.maxTerminationsPerDay=100.0
  </code></pre>