Skip to content

Conversation

@danklee19
Copy link

Setting custom data don't work, because JSON.parse is missing...added

Setting custom data don't work, because JSON.parse is missing...added
@mauriciogior
Copy link
Member

@danklee19 Thanks. Could you add a check to verify if data is a JSON or a String prior to using JSON.parse?

@danklee19
Copy link
Author

danklee19 commented Dec 19, 2019

Ok, there are one simple check (first and last character)
The second check (regex) is not fine or complete, but it works 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants