I want to validate if a given value is a valid json or not but it's not working for numeric values. Please suggest a way to validate it properly.
isjsonvalid(1234)
isjsonvalid("123")
Both of the above statements are returning true even though they are not json.
Discussion posts and replies are publicly visible
My non-Appian JSON validator is fine with both.
But I need this to be working on Appian
I do not understand. Both of your values are valid JSON. So, the return values of that function are correct.
Okay, got it now, I was not aware that json treats both 123, "123" as integer.