title: Uncaught SyntaxError: Unexpected string in JSON at position 7 when using $.parseJSON
body: <p>I am trying to create named Object in javascript like this: -</p>
  
  <pre><code>{
  id: "marker_0",
  tooltip: country,
  src: "//localhost/mapsvg/markers/pin1_red.png",
  width: 15,
  height: 24,
  geoCoords: [latitude, longitude]
  },
  {
  id: "marker_1",
  tooltip: country,
  src: "//localhost/mapsvg/markers/pin1_red.png",
  width: 15,
  height: 24,
  geoCoords: [latitude, longitude]
  }
  </code></pre>
  
  <p>and so on. I am getting <strong>country, latitude, longitude</strong> values from database. Below is my code: - </p>
  
  <pre><code>var objFormat;
  var i =0;
  var mapFormat = [];
  for (var country in countries_coord) {
    values = countries_coord[country];
    objFormat = '{"id:" "marker_""' + i + '","tooltip:" "' + country + '","src:" "//localhost/mapsvg/markers/pin1_red.png","width:" "'+ 15 + '","height:" "'+ 24 + '","geoCoords:" [ "'+ values.latitude + '", "'+values.longitude + '" ]}';
    obj = $.parseJSON(objFormat);
    mapFormat.push(objFormat);
    i++;
  
  }
  </code></pre>
  
  <p>But I am getting the error <strong>"Uncaught SyntaxError: Unexpected string in JSON at position 7"</strong>. I think I am not creating the object in right way. Please help. Thanks in advance.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Here is what I have in <strong>countries_coord</strong> array a complete JSON: -</p>
  
  <pre><code>Afghanistan
  :
  Object
  latitude
  :
  "33.93911"
  longitude
  :
  "67.709953"
  
  Australia
  :
  Object
  latitude
  :
  "-25.274398"
  longitude
  :
  "133.775136"
  </code></pre>
  
  <p>and so on I have another values in same format.</p>