title: JSON parsing using SOAP request and response
body: <p>in my project i want to use JASON parsing my sample soap request and response is here below please guide me how can i do that</p>
  
  <pre><code>// soap request //
  
  &lt;SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns9093="urn:outmarket"&gt;&lt;SOAP-ENV:Body&gt;&lt;ns9093:doStartup xmlns:ns9093="urn:outmarket"&gt;&lt;username xsi:type="xsd:string"&gt;guest&lt;/username&gt;&lt;password xsi:type="xsd:string"&gt;guest&lt;/password&gt;&lt;/ns9093:doStartup&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;
  
  
  // soap response //
  
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"&gt;&lt;SOAP-ENV:Body&gt;&lt;ns1:doStartupResponse xmlns:ns1="urn:outmarket"&gt;&lt;return xsi:type="xsd:xml"&gt;&lt;isvaliduser&gt;1&lt;/isvaliduser&gt;&lt;userid&gt;19&lt;/userid&gt;&lt;cansubmitphoto&gt;0&lt;/cansubmitphoto&gt;&lt;cansubmitcomment&gt;0&lt;/cansubmitcomment&gt;&lt;cansubmitrating&gt;0&lt;/cansubmitrating&gt;&lt;cansubmitmarket&gt;0&lt;/cansubmitmarket&gt;&lt;cansubmitstallholder&gt;0&lt;/cansubmitstallholder&gt;&lt;databaseid&gt;1&lt;/databaseid&gt;&lt;markets&gt;&lt;markettype&gt;1&lt;/markettype&gt;&lt;marketid&gt;3&lt;/marketid&gt;&lt;marketname&gt;&lt;![CDATA[Bairnsdale Farmers Market]]&gt;&lt;/marketname&gt;&lt;ratingname&gt;&lt;![CDATA[Market in general]]&gt;&lt;/ratingname&gt;&lt;good&gt;0&lt;/good&gt;&lt;neutral&gt;0&lt;/neutral&gt;&lt;bad&gt;0&lt;/bad&gt;&lt;/markets&gt;&lt;markets&gt;&lt;markettype&gt;0&lt;/markettype&gt;&lt;marketid&gt;3&lt;/marketid&gt;&lt;marketname&gt;&lt;![CDATA[Bairnsdale Farmers Market]]&gt;&lt;/marketname&gt;&lt;ratingname&gt;&lt;![CDATA[Market in general]]&gt;&lt;/ratingname&gt;&lt;good&gt;25&lt;/good&gt;&lt;neutral&gt;0&lt;/neutral&gt;&lt;bad&gt;18&lt;/bad&gt;&lt;/markets&gt;&lt;markets&gt;&lt;markettype&gt;0&lt;/markettype&gt;&lt;marketid&gt;5&lt;/marketid&gt;&lt;marketname&gt;&lt;![CDATA[Bendigo Farmers' Market]]&gt;&lt;/marketname&gt;&lt;ratingname&gt;`
  </code></pre>