<?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 Can't Remove Special characters from json in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-t-Remove-Special-characters-from-json/m-p/343980#M234067</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to convert this json to csv. But it failed because of the special characters in the json content. Below is the json i would like to convert to csv. So the&amp;nbsp;responseMessage value is where the problem is &amp;amp; its auto-generated in that format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"responseMessage": "hdhdhdhdh&lt;STRONG&gt;:&lt;/STRONG&gt;dgdgdgdg "fdfdf" bbbbbbb",&lt;/P&gt;&lt;P&gt;"result": "failed",&lt;/P&gt;&lt;P&gt;"code": "34"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DESIRED OUTPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"responseMessage": "hdhdhdhdh dgdgdgdg fdfdf bbbbbbb",&lt;/P&gt;&lt;P&gt;"result": "failed",&lt;/P&gt;&lt;P&gt;"code": "34"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 07:56:19 GMT</pubDate>
    <dc:creator>rafy</dc:creator>
    <dc:date>2026-04-21T07:56:19Z</dc:date>
    <item>
      <title>Can't Remove Special characters from json</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-Remove-Special-characters-from-json/m-p/343980#M234067</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to convert this json to csv. But it failed because of the special characters in the json content. Below is the json i would like to convert to csv. So the&amp;nbsp;responseMessage value is where the problem is &amp;amp; its auto-generated in that format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"responseMessage": "hdhdhdhdh&lt;STRONG&gt;:&lt;/STRONG&gt;dgdgdgdg "fdfdf" bbbbbbb",&lt;/P&gt;&lt;P&gt;"result": "failed",&lt;/P&gt;&lt;P&gt;"code": "34"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DESIRED OUTPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"responseMessage": "hdhdhdhdh dgdgdgdg fdfdf bbbbbbb",&lt;/P&gt;&lt;P&gt;"result": "failed",&lt;/P&gt;&lt;P&gt;"code": "34"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:56:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-Remove-Special-characters-from-json/m-p/343980#M234067</guid>
      <dc:creator>rafy</dc:creator>
      <dc:date>2026-04-21T07:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Remove Special characters from json</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-Remove-Special-characters-from-json/m-p/344076#M234076</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95347"&gt;@rafy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The extra character in the response message is not a special character. It's just some extra double-quotes. However, when double-quotes appear in a string in JSON they must be escaped. The correct valid JSON would've been:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "responseMessage": "hdhdhdhdh:dgdgdgdg \"fdfdf\" bbbbbbb",
  "result": "failed",
  "code": "34"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The application that's generating those messages should be fixed to generate valid JSON representations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 23:19:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-Remove-Special-characters-from-json/m-p/344076#M234076</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-05-18T23:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Remove Special characters from json</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-Remove-Special-characters-from-json/m-p/344080#M234080</link>
      <description>&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;But i have no control over the system generated json.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 01:44:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-Remove-Special-characters-from-json/m-p/344080#M234080</guid>
      <dc:creator>rafy</dc:creator>
      <dc:date>2022-05-19T01:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Remove Special characters from json</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-Remove-Special-characters-from-json/m-p/344084#M234083</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95347"&gt;@rafy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is tricky and whatever solution we come up with here cannot be guaranteed to always work. It will always depend on the content that comes in the responseMessage field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the particular example that you shared above, this works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="araujo_0-1652932649010.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34410iA62C72F3911A0744/image-size/medium?v=v2&amp;amp;px=400" role="button" title="araujo_0-1652932649010.png" alt="araujo_0-1652932649010.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The settings are:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Search Value:      (?s)(.*\"responseMessage\"\s*:\s*\"[^\"]*|\G[^\"]*)\"(?!,)
Replacement Value: $1\\"
Evaluation Mode:   Entire text&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can check it out here:&amp;nbsp;&lt;A href="https://regex101.com/r/paPPhK/1" target="_blank"&gt;https://regex101.com/r/paPPhK/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 03:59:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-Remove-Special-characters-from-json/m-p/344084#M234083</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-05-19T03:59:42Z</dc:date>
    </item>
  </channel>
</rss>

