<?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: cleaning up string with json in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/727560#M31792</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/286738"&gt;@PDeT&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried printing out the values of your "info" variable? You're setting it but I didn't see an output there.&lt;/P&gt;
&lt;PRE&gt;{{ info }}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, do you get anything if you try this? Hopefully that will get you something if the JSON is the same in the contact property.&lt;/P&gt;
&lt;PRE&gt;{{ info['test 1'] }}&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another also, what is the exact value of your contact property so we can also try to reproduce this?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 01:15:32 GMT</pubDate>
    <dc:creator>tominal</dc:creator>
    <dc:date>2022-12-07T01:15:32Z</dc:date>
    <item>
      <title>cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/725443#M31681</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a new puzzle today.&lt;/P&gt;&lt;P&gt;I have a contact property that has a json string as value. When I fetch the value with the api, and paste it in my template, assigned to a variable, the variable neatly passes a fromjson filter and I can transform the json into a structure I can then use in the template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when the property is collected in the template, it fails to be transformed to json: contact[property]|fromjson returns an empty result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I print the contact[property] and the variable with the json value from the api, both strings are exactly the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;{% set blob = "[{\"test 1\":\"value 1\",\"test 2\":\"value 2\"}]" %}

{% set info = contact['easy_calculator_result']|fromjson %}
{# set info = blob|fromjson #}
&amp;lt;ul&amp;gt;
  &amp;lt;li&amp;gt;{{ contact['easy_calculator_result']|pprint }}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ blob|pprint }}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ contact['easy_calculator_result']|fromjson}}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ blob|fromjson}}&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This renders:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ul&amp;gt;
  &amp;lt;li&amp;gt;(String: [{"test 1":"value 1","test 2":"value 2"}])&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;(String: [{"test 1":"value 1","test 2":"value 2"}])&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;[{test 1=value 1, test 2=value 2}]&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So there you see both values are pprinted exactly the same. The one from the contact is not valid json. Even a trim before fromjson does not help. What other cleanup would be possible to make this parseable json?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for any pointers or feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:42:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/725443#M31681</guid>
      <dc:creator>PDeT</dc:creator>
      <dc:date>2022-12-01T16:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/726020#M31724</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/286738"&gt;@PDeT&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question. Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/153634"&gt;@tominal&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/193060"&gt;@JBeatty&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/144301"&gt;@taran42&lt;/a&gt;, do&amp;nbsp;you have any tips for&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/286738"&gt;@PDeT&lt;/a&gt;&amp;nbsp;and their puzzle &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 19:52:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/726020#M31724</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-12-02T19:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/727560#M31792</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/286738"&gt;@PDeT&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried printing out the values of your "info" variable? You're setting it but I didn't see an output there.&lt;/P&gt;
&lt;PRE&gt;{{ info }}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, do you get anything if you try this? Hopefully that will get you something if the JSON is the same in the contact property.&lt;/P&gt;
&lt;PRE&gt;{{ info['test 1'] }}&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another also, what is the exact value of your contact property so we can also try to reproduce this?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 01:15:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/727560#M31792</guid>
      <dc:creator>tominal</dc:creator>
      <dc:date>2022-12-07T01:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/727863#M31802</link>
      <description>&lt;P&gt;Hi, thx for reaching out !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;info is indeed not in the ouput, it was a left over. In fact that assignment is what is being printed in the third list item, which results in no output.&lt;/P&gt;&lt;P&gt;The actual value set in the property is the json string that is also copy pasted in the assignment of 'blob', except for the quote escapes. So it is&lt;/P&gt;&lt;LI-CODE lang="java"&gt;[{"test 1":"value 1","test 2":"value 2"}]&lt;/LI-CODE&gt;&lt;P&gt;to be exact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for sake of clarity, I adjusted the template code:&lt;/P&gt;&lt;P&gt;template:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{% set blob = "[{\"test 1\":\"value 1\",\"test 2\":\"value 2\"}]" %}

{% set info = contact['easy_calculator_result']|fromjson %}
{# set info = blob|fromjson #}
&amp;lt;ul&amp;gt;
  &amp;lt;li&amp;gt;{{ contact['easy__calculater_result_html']|pprint }}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ blob|pprint }}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ contact['easy__calculater_result_html']|safe|fromjson}}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ blob|fromjson}}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ info }}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ info['test 1'] }}&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ul&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;(String: [{"test 1":"value 1","test 2":"value 2"}])&amp;lt;/li&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;(String: [{"test 1":"value 1","test 2":"value 2"}])&amp;lt;/li&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;[{test 1=value 1, test 2=value 2}]&amp;lt;/li&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 15:43:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/727863#M31802</guid>
      <dc:creator>PDeT</dc:creator>
      <dc:date>2022-12-07T15:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/728078#M31810</link>
      <description>&lt;P&gt;I just noticed this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tominal_0-1670444297924.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/80738i1E8BF6B96F41955F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tominal_0-1670444297924.png" alt="tominal_0-1670444297924.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code you are setting the info variable to your contact property with one underscore. Does changing that affect anything?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 20:18:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/728078#M31810</guid>
      <dc:creator>tominal</dc:creator>
      <dc:date>2022-12-07T20:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/728079#M31811</link>
      <description>&lt;P&gt;Hi, again, my bad, i copied it from an older open tab I had. Just to be sure, updated the template again with my original case, like the following (with the output after that, problem unfortunately remains)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set blob = "[{\"test 1\":\"value 1\",\"test 2\":\"value 2\"}]" %}

{% set info = contact['easy_calculator_result']|fromjson %}
{# set info = blob|fromjson #}
&amp;lt;ul&amp;gt;
  &amp;lt;li&amp;gt;{{ contact['easy_calculator_result']|pprint }}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ blob|pprint }}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ contact['easy_calculator_result']|safe|fromjson}}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ blob|fromjson}}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ info }}&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;{{ info['test 1'] }}&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ul&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;(String: [{"test 1":"value 1","test 2":"value 2"}])&amp;lt;/li&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;(String: [{"test 1":"value 1","test 2":"value 2"}])&amp;lt;/li&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;[{test 1=value 1, test 2=value 2}]&amp;lt;/li&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;li style="mso-line-height-rule:exactly"&amp;gt;&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated that you are taking the time to look into this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 20:26:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/728079#M31811</guid>
      <dc:creator>PDeT</dc:creator>
      <dc:date>2022-12-07T20:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/728113#M31812</link>
      <description>&lt;P&gt;Ah, I see it now. So if your contact property does indeed contain this value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[{"test 1":"value 1","test 2":"value 2"}]&lt;/PRE&gt;
&lt;P&gt;That is an&amp;nbsp;&lt;U&gt;array&lt;/U&gt; of data, so you would need to do info[0]['test 1'] for it to output the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an output from a test module I created containing a contact with a&amp;nbsp;&lt;U&gt;multi-line text&lt;/U&gt;&amp;nbsp;property containing your JSON value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tominal_1-1670448644158.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/80747i4908420A36BBFC63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tominal_1-1670448644158.png" alt="tominal_1-1670448644158.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After using info[0]['test 1'], I get this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tominal_2-1670448713335.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/80748iD61A857060082605/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tominal_2-1670448713335.png" alt="tominal_2-1670448713335.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure why your {{ info }} is not working in a similar way. Perhaps it needs to be in a multi-line text property rather than a single-line property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 21:32:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/728113#M31812</guid>
      <dc:creator>tominal</dc:creator>
      <dc:date>2022-12-07T21:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/728122#M31813</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/153634"&gt;@tominal&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried both single and multiline property field types, without any difference. Curious though that you get something for info[0]['test 1'], that still returns nothing.&lt;/P&gt;&lt;P&gt;Can you confirm you are using the fromjson filter on the contact property? It is there that it goes wrong in my case: as soon as I use that filter, the result is void.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 21:52:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/728122#M31813</guid>
      <dc:creator>PDeT</dc:creator>
      <dc:date>2022-12-07T21:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/728192#M31814</link>
      <description>&lt;P&gt;Hmm I'm not too sure why it won't work. HubL should be the same everywhere. Here is my code that I used in a module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tominal_0-1670462499999.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/80760i6BF35AEE51AF058C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tominal_0-1670462499999.png" alt="tominal_0-1670462499999.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 01:22:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/728192#M31814</guid>
      <dc:creator>tominal</dc:creator>
      <dc:date>2022-12-08T01:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/730552#M31896</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/153634"&gt;@tominal&lt;/a&gt;, could you tell how you filled the property as well? Because maybe the problem lies there... as I can't get your example to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 22:48:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/730552#M31896</guid>
      <dc:creator>PDeT</dc:creator>
      <dc:date>2022-12-13T22:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/730585#M31900</link>
      <description>&lt;P&gt;I filled it with exactly the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[{"test 1":"value 1","test 2":"value 2"}]&lt;/PRE&gt;
&lt;P&gt;I would check that there isn't any whitespace before or after your property value as well. Perhaps ping it with an API request to see the true HubSpot database value.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 00:45:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/730585#M31900</guid>
      <dc:creator>tominal</dc:creator>
      <dc:date>2022-12-14T00:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: cleaning up string with json</title>
      <link>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/736884#M32121</link>
      <description>&lt;P&gt;Hi Kahu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've let this rest a bit to see if fresh looks in a new year would help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I see now the difference between your code and mine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You use a text field on a module, and I can confirm this works. I use a text field on a contact. And it seems HS is doing some kind of 'protection' of that, or formatting, such that the fromjson filter does not work when it is applied to a contact property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that clarifies the reason why it works for you and not for me, but I would not mark this puzzle as solved. Someone from HS should look into this and document why this is different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards &amp;amp; happy new year&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 22:07:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/cleaning-up-string-with-json/m-p/736884#M32121</guid>
      <dc:creator>PDeT</dc:creator>
      <dc:date>2023-01-03T22:07:25Z</dc:date>
    </item>
  </channel>
</rss>

