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

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

So is this bug on the roadmap to be fixed properly?  It's quite a pain whenever your JSON has a time string.