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

Forge Component
Published on 2018-10-11 by Labs
7 votes
Published on 2018-10-11 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



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.


João Heleno