Skip to main content
uttrat238161
October 31, 2023
Question

isjsonvalid not working for numeric values

  • October 31, 2023
  • 4 replies
  • 0 views

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.

4 replies

stefanhelzle0001
Brainy
October 31, 2023

My non-Appian JSON validator is fine with both.

uttrat238161
October 31, 2023

But I need this to be working on Appian

stefanhelzle0001
Brainy
October 31, 2023

I do not understand. Both of your values are valid JSON. So, the return values of that function are correct.