<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: On JSON payload get child object in CSM forum</title>
    <link>https://www.servicenow.com/community/csm-forum/on-json-payload-get-child-object/m-p/396562#M9829</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;are you saying you want to store the json string into some string field?&lt;/P&gt;
&lt;P&gt;if yes then do this&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var json = '{"BusinessAccount":{"PrimaryAccount":{"Name":"test","country":"GB","Contact info":{"email":"test@gmail.com","businessUnit":"GB01"}}}}';

var parser = JSON.parse(json);

var contactInfo = JSON.stringify(parser.BusinessAccount.PrimaryAccount["Contact info"]);

gs.info(contactInfo);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/14325i4A76981EA8282C4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 06:40:09 GMT</pubDate>
    <dc:creator>Ankur Bawiskar</dc:creator>
    <dc:date>2022-06-23T06:40:09Z</dc:date>
  </channel>
</rss>

