<?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>topic Re: JSON line breaking in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/JSON-line-breaking-How-do-I-get-rid-of-the/m-p/608267#M105552</link>
    <description>&lt;P&gt;Use SEDCMD to remove the unwanted character.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-rmbracket = s/\]$//&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 04 Aug 2022 12:25:06 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-08-04T12:25:06Z</dc:date>
    <item>
      <title>JSON line breaking- How do I get rid of the ]?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-line-breaking-How-do-I-get-rid-of-the/m-p/608248#M105549</link>
      <description>&lt;P&gt;Hi Team I have a JSON file as below :-&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[{"entityId":null,"entityType":"Account.AccountRequest","accessedByUser":"jinghui@bullish.treasurygo.com","milestone":"Approval","comment":"Bank Account Manager approved this request. Comments: ","commentType":"MilestoneApproval","when":"2022-07-26T06:10:43.91Z","id":30},{"entityId":null,"entityType":"Account.AccountRequest","accessedByUser":"jinghui@bullish.treasurygo.com","milestone":"Approval","comment":"Bank Account Manager approved this request. Comments: ","commentType":"MilestoneApproval","when":"2022-07-26T06:10:43.91Z","id":30},{"entityId":null,"entityType":"Account.AccountRequest","accessedByUser":"jinghui@bullish.treasurygo.com","milestone":"A task was completed","comment":"Prepare SAP Config Docs","commentType":"MilestoneGeneric","when":"2022-07-26T06:10:43.907Z","id":29},{"entityId":null,"entityType":"Account.AccountRequest","accessedByUser":"jinghui@bullish.treasurygo.com","milestone":"A task was completed","comment":"Prepare SAP Config Docs","commentType":"MilestoneGeneric","when":"2022-07-26T06:10:43.907Z","id":29}]

&lt;/LI-CODE&gt;
&lt;P&gt;I am using the pattern while testing and reviewing the events :-&lt;BR /&gt;(\[|,|\]){&lt;/P&gt;
&lt;P&gt;This breaks everything fine but the last line which has the closing ]&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chandvit_0-1659608177437.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20855i04F69707968C5E3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chandvit_0-1659608177437.png" alt="chandvit_0-1659608177437.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to get rid of the ] at the end of the JSON array?&lt;/P&gt;
&lt;P&gt;Kindly request you'll to guide me.Many thanks in anticipation.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 14:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-line-breaking-How-do-I-get-rid-of-the/m-p/608248#M105549</guid>
      <dc:creator>chandvit</dc:creator>
      <dc:date>2022-08-04T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: JSON line breaking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-line-breaking-How-do-I-get-rid-of-the/m-p/608267#M105552</link>
      <description>&lt;P&gt;Use SEDCMD to remove the unwanted character.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-rmbracket = s/\]$//&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Aug 2022 12:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-line-breaking-How-do-I-get-rid-of-the/m-p/608267#M105552</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-08-04T12:25:06Z</dc:date>
    </item>
  </channel>
</rss>

