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

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

"{"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

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