title: Convert JSON Data To Property Format using Powershell
body: <p>I am working on one challenge which I am trying to solve, but due to lack of experience hit a roadblock. I would greatly appreciate any help from gurus on this site :)</p>
  <p>I need to convert JSON input to property format.
  <strong>Example</strong>:
  Given JSON:</p>
  <pre><code>{
    &quot;name&quot;: &quot;John&quot;,
    &quot;age&quot;: 30,
    &quot;married&quot;: True,
    &quot;cars&quot;: [
      {&quot;model&quot;: &quot;BMW 230&quot;, &quot;mpg&quot;: 27.5},
      {&quot;model&quot;: &quot;Ford Edge&quot;, &quot;mpg&quot;: 24.1}
    ]}
  </code></pre>
  <p>Need to be converted to following format once script executed:</p>
  <pre><code>name=&quot;John&quot;
  age=30
  married=true
  cars.0.model=&quot;BMW 230&quot;
  cars.0.mpg=27.5
  cars.1.model=&quot;Ford Edge&quot;
  cars.1.mpg=24.1
  </code></pre>
  <p>I found this online converter which works: <a href="https://tools.fromdev.com/json-to-property-converter.html" rel="nofollow noreferrer">https://tools.fromdev.com/json-to-property-converter.html</a></p>
  <p>But because in my case i need to integrate to Azure pipeline, online version will not work for me</p>
  <p>Any help would be greatly appreciated!</p>