title: Swap 2 lines within a JSON file. Lat and Lon without tags
body: <p>I have a large json file with code that looks a lot like below. I wish to have the same output but need the latitude and longitude swapped.</p>
  <pre><code>&quot;path&quot;: [
          [
              -0.662301763628716,
              51.48792441079866
          ],
          [
              -0.661955225774188,
              51.487855733392
          ],
          [
              -0.66143913564835,
              51.48772120562989
          ]
  </code></pre>
  <p>The goal is to swap these 2 numbers around, they vary as they are GPS latitude and longitude values. Any solution using programs/language script is welcome.</p>
  <p>Edit:</p>
  <p>After the answers that have been posted on this, I have come to provide additional details. It would appear since the path is encased further it does not allow it to be `.reservse. as well as I would have hoped.</p>
  <p>Here is the full format -</p>
  <pre><code>[
      {
          &quot;name&quot;: &quot;Dedworth West&quot;,
          &quot;path&quot;: [
              [
                  -0.662301763628716,
                  51.48792441079866
              ],
              [
                  -0.661955225774188,
                  51.487855733392
              ],
              [
                  -0.66143913564835,
                  51.48772120562989
              ],
  </code></pre>