My Oracle Support Banner

JavaScript On OSB Apostrophe Encoding (Doc ID 3077664.1)

Last updated on MARCH 24, 2025

Applies to:

Oracle Service Bus - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Goal

On : 12.2.1.4.0 version, OSB Transports

JavaScript on OSB apostrophe encoding

Developing a service on OSB, we use the JavaScript element in the pipeline and JSON.parse the following text - <{"DictionaryCalculationParamValues":[{"Id":92007,"Coefficient":1.00,"Name":"24\/7","Code":"13641","EId":"1","IsDefault":"Y"},{"Id":92929,"Coefficient":0.80,"Name":"Під час учбових занять \/ службових обов’язків","Code":"13644","EId":"4","IsDefault":"N"},{"Id":92006,"Coefficient":0.85,"Name":"Під час занять спортом\/змагань","Code":"13645","EId":"5","IsDefault":"N"}]}>.

As a result, we get the following result - <{"data":{"DictionaryCalculationParamValues":[{"IsDefault":"Y","EId":"1","Coefficient":1,"Id":92007,"Code":"13641","Name":"24/7"},{"IsDefault":"N","EId":"4","Coefficient":0.8,"Id":92929,"Code":"13644","Name":"Під час учбових занять / службових обов\u2019язків"},{"IsDefault":"N","EId":"5","Coefficient":0.85,"Id":92006,"Code":"13645","Name":"Під час занять спортом/змагань"}]},"message":null}>.

What needs to be done so that the apostrophe is not encoded in "\u2019" ?
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.