JS+REST+NodeJS: How to parse a JSON list from a JSON object
<p>In Python I have a JSON object, inside its fields there is one (<strong>field3</strong>) which contains a list of json objects.</p>

<p>This object is passed from a Python script to a REST service based in JS with Express framework:</p>

<pre><code>urllib.request.urlopen(
    urllib.request.Request(
    url="http://"+self.__host+_":"+self.__port+"/api"+restmethod,
    data=urllib.parse.urlencode(objData).encode('utf8'),
    headers=self.__headertoken,method=httpmethod)
)
</code></pre>

<p>But when the server receives the JSON automatically recognizes the <strong>field33</strong> as a string instead of a JSON list.</p>

<pre><code>{ field1: '',
  field2: '',
  field3: '[{\'field31\': \'\', \'field32\': \'\', \'field33\':\'\',\'field34\': \'\', \'field34\': \'0.00\'}]',
  field4: ''
}
</code></pre>

<p>So when I try <strong>obj.field3[0]</strong> it returns a string rather than JSON list.</p>

<p>I tried <code>JSON.parse(string)</code> and <code>JSON.stringify(object)</code> but still I cannot access to the Json list and its elements like <strong>obj.field3.field31</strong></p>

<p>How can I recover that JSON list from the parent JSON field?
Thanks</p>