[JavaScript Utils] JavascriptUtils: Colon character in value field.

Forge Component
(7)
Published on 2 Oct by Labs
7 votes
Published on 2 Oct by Labs

Is it possible to use colon character with these utils?

When I use function CorrectJSONStringForParse with input JSON string

{   "title": "01:01:01" }

it returns me "corrected" JSON string such as

"{"title":""01":"01":01"}"

@Expeditor

Looking at the code I saw that action was based in a Stack Overflow answer.

I tried the current accepted solution and got it right! Just replace or create a new action with the JS below.

Attention: It uses eval() so only use it if you trust the source of your input JSON.




Regards,

João Heleno