864
Views
9
Comments
How to Check if It is a Valid JSON Format
Question

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,


2024-12-04 07-24-25
Amol

Hello Made,

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

2025-01-09 14-56-57
IQ78

Hi Amol,

How to use it?

thank you

2024-12-04 07-24-25
Amol

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


2025-01-09 14-56-57
IQ78

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

thank you

2025-04-22 05-54-18
Shashi Kant Shukla

Hi Made,

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

Regards

-SK-

ValidateJSON.oml
2025-01-09 14-56-57
IQ78

hi Sashi,

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

regards

2025-01-09 14-56-57
IQ78

is there a server function, not a client action?


regards,

2016-07-15 19-11-34
Alexei

Made wrote:

is there a server function, not a client action?


regards,

Hi Made,


did you eventually find a JSON validator Server side function?


2017-03-03 12-48-17
Balasubramanian Prakasam

Hi All,


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


Thanks,

Balu

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