| Author | 
		  Message
		 | 
		
		  | wmbv7newbie | 
		  
		    
			  
				 Posted: Wed Feb 18, 2015 1:45 am    Post subject: JSON Message Modeling and Validation | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 13 May 2014 Posts: 121
  
  | 
		  
		    
			  
				Hi,
 
 
I have an interface in which the output message format is JSON. I wish to validate this message before sending to the destination system. 
 
 
However, while reading about it 
   
	| Quote: | 
   
  
	| http://www-01.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/bc28400_.htm | 
   
 
 I found that JSON message modeling, and hence validation, is currently not supported by broker.
 
 
Just wanted to know if somebody knows of a workaround. Outgoing message validation is something that I really want to have in my message flow.
 
 
FYI, I am using IBM WMB 8.0.0.2 and soon going to migrate to IIB v9. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | adubya | 
		  
		    
			  
				 Posted: Wed Feb 18, 2015 2:20 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Partisan
 
 Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK 
  | 
		  
		    
			  
				| What are you looking to validate it against ? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | wmbv7newbie | 
		  
		    
			  
				 Posted: Wed Feb 18, 2015 2:21 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 13 May 2014 Posts: 121
  
  | 
		  
		    
			  
				| So I have asked the destination system to provide a JSON schema to us for validation. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | adubya | 
		  
		    
			  
				 Posted: Wed Feb 18, 2015 2:32 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Partisan
 
 Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK 
  | 
		  
		    
			  
				| OK, well I believe there are JSON schema validators out there, written in Java.  You could incorporate one of those into a compute node to validate your JSON output. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | wmbv7newbie | 
		  
		    
			  
				 Posted: Wed Feb 18, 2015 3:03 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 13 May 2014 Posts: 121
  
  | 
		  
		    
			  
				| Does that mean MB does not support JSON schema right now? Any idea if it is planned in any future versions? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Wed Feb 18, 2015 3:48 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				JSON Schema is not yet a ratified standard. The core specification is here: http://json-schema.org/latest/json-schema-core.html
 
Note that this draft specification expired in August 2013 and has not been updated since. Same applies to the other two parts of the specification. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |