web stats
Validate a Json with a schema - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-18-2019, 04:57 AM
Mirthvu14 Mirthvu14 is offline
Mirth Newb
 
Join Date: Jan 2019
Posts: 25
Mirthvu14 is on a distinguished road
Default Validate a Json with a schema

I create a json in Mirth. Is it possible to validate this json in my channel with a schema?

Thanks!
Reply With Quote
  #2  
Old 08-06-2019, 05:45 AM
Mirthvu14 Mirthvu14 is offline
Mirth Newb
 
Join Date: Jan 2019
Posts: 25
Mirthvu14 is on a distinguished road
Default

Quote:
Originally Posted by Mirthvu14 View Post
I create a json in Mirth. Is it possible to validate this json in my channel with a schema?

Thanks!
I find an example for XSD

Code:
var schema = schemaFactory.newSchema(schemaLocation);
var validator = schema.newValidator();
validator.validate()
Is it right for json? Is it possible using external library?

Last edited by Mirthvu14; 08-06-2019 at 06:38 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:55 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation