title: JsonSluper and JsonOutput convert some symbols in string to strange characters
body: <p>I am using a groovy script to convert some of the values in the body to their primitive datatype. To achieve this I am using JsonSluper and JsonOutput.
  JsonSluper and JsonOutput are converting some symbols in string from my json body to strange characters. Any suggestions how this can be fixed ?</p>
  <blockquote>
  <p>Example:  &quot;UnitPrice&quot;: &quot;99¢ per lb.&quot; is converted to &quot;UnitPrice&quot;:
  &quot;99\u00a2 per lb.&quot;</p>
  <p>¢ is converted to \u00a2</p>
  </blockquote>
  <p>My script:</p>
  <pre><code>def body = message.getBody(java.lang.String);
      def JSONInput = new JsonSlurper().parseText(body);
      
      JSONInput.data.ProductStorePrices.each{
          if(it.Price != null){
              it.Price = it.Price.toDouble();
          }
          if(it.Active != null){
              it.Active = it.Active.toBoolean();
          }
      }
  message.setBody(JsonOutput.toJson(JSONInput))
  </code></pre>
  <p>Below is my JSONBody before conversion:</p>
  <pre><code>{
      &quot;data&quot;: {
          &quot;ProductStorePrices&quot;: [
              {
                  &quot;Product_LegacyID&quot;: &quot;1005&quot;,
                  &quot;Store_LegacyStoreID&quot;: &quot;2&quot;,
                  &quot;DistributionCenter_LegacyRegionID&quot;: &quot;916&quot;,
                  &quot;PriceType_Code&quot;: &quot;unadjustedRetail&quot;,
                  &quot;ValidFrom&quot;: &quot;2000-01-01T00:00:00Z&quot;,
                  &quot;Price&quot;: &quot;9.99&quot;,
                  &quot;ValidTo&quot;: &quot;2022-05-04T23:59:59Z&quot;,
                  &quot;Currency&quot;: &quot;USD&quot;,
                  &quot;Active&quot;: &quot;false&quot;,
                  &quot;UnitPrice&quot;: &quot;99¢ per lb.&quot;,
                  &quot;LastChangedAt&quot;: &quot;2022-05-04T23:59:59Z&quot;
              }
          ]
      }
  }
  </code></pre>
  <p>My output JSONBody after conversion using groovy script above</p>
  <pre><code>{
      &quot;data&quot;: {
          &quot;ProductStorePrices&quot;: [
              {
                  &quot;Product_LegacyID&quot;: &quot;1005&quot;,
                  &quot;Store_LegacyStoreID&quot;: &quot;2&quot;,
                  &quot;DistributionCenter_LegacyRegionID&quot;: &quot;916&quot;,
                  &quot;PriceType_Code&quot;: &quot;unadjustedRetail&quot;,
                  &quot;ValidFrom&quot;: &quot;2000-01-01T00:00:00Z&quot;,
                  &quot;Price&quot;: 9.99,
                  &quot;ValidTo&quot;: &quot;2022-05-04T23:59:59Z&quot;,
                  &quot;Currency&quot;: &quot;USD&quot;,
                  &quot;Active&quot;: false,
                  &quot;UnitPrice&quot;: &quot;99\u00a2 per lb.&quot;,
                  &quot;LastChangedAt&quot;: &quot;2022-05-04T23:59:59Z&quot;
              }
          ]
      }
  }
  </code></pre>