How to Check if It is a Valid JSON Format

How to Check if It is a Valid JSON Format

  

Hi there, 

I create a unit testing, and try to check if data response from an external REST API is in a valid JSON format. How to?

Thank you.

regards,


Hello Made,

You can use below json validator to validate your json:
https://www.outsystems.com/forge/component/1948/json-validator/

Hi Amol,

How to use it?

thank you

In this example check how they achieve this functionality through javascript JSON validator, as shown below:


It is a client side? Is there a server side validation?

thank you

Hi Made,

Please find attached oml in this oml I used JsonValidator page name is: ValidateJSON you can refer this page.

Regards

-SK-

hi Sashi,

I want to have server side action to check the validity.

regards

is there a server function, not a client action?


regards,

Made wrote:

is there a server function, not a client action?


regards,

Hi Made,


did you eventually find a JSON validator Server side function?


Hi All,


Here i create a Json Validator with server validation, i attach the OML.


Thanks,

Balu