title: Extract values from Json
body: <p>I am using <code>org.json.simple.JSon</code> and I have a JSON <code>Array</code> of JSON objects like this:</p>
  
  <pre><code>{"longitude:":-1.0,"latitude:":1.0},
  {"longitude:":1.0,"latitude:":1.0},
  {"longitude:":1.0,"latitude:":-1.0},
  {"longitude:":-1.0,"latitude:":-1.0}
  </code></pre>
  
  <p>I need to extract values for longitudes and latitudes in to a list like this
  <code>[-1.0,1.0]</code>
  <code>[1.0,1.0]</code></p>
  
  <p>Is there a way to do so using Json or using regex?</p>