56
Views
2
Comments
[JavaScript Utils] JavascriptUtils: Colon character in value field.
Question
javascript-utils
Forge component by Nate Andrews

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

mvp_badge
MVP

@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

mvp_badge
MVP

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.