title: How to validate JSON schema in java?
body: <p>I try to check user detail object with use JSON schema. But I don't know how to check JSON object in Java.</p>
  
  <p>My Schema:</p>
  
  <pre><code>{
       "type" : "object",
       "properties" : {
       "first_name" : {
                       "type" : "string" , 
                       "minLength"  : 3 , 
                       "maxLength" : 255 
                    }, 
     "last_name" : {
                       "type" : "string" , 
                       "minLength"  : 3 , 
                       "maxLength" : 255 
                    },
      "age"       : { 
                       "type" : "integer" , 
                       "minimum" : 16 ,
                        "maximum" : 40
                    },
      "phone_number" : {
                          "type" : "integer",
                          "pattern" : "[6-9][0-9]{9}"
                       } ,
       "email"     : { 
                         "type" : "string",
                         "pattern" : "[a-z0-9]+"
                     } , 
       "password" : { 
                         "type" : "string" ,
                         "minLength" : 7 ,
                         "maxLength" : 255 ,
                         "pattern" : "^.{7, 255}$"
                    } , 
        "gender" : { "enum" : ["Male" , "Female"] }   
  },
  
  "required" : ["first_name","last_name" , "age"  ,"email" , "password" 
  , "gender" ]
  }
  </code></pre>
  
  <p>My Sample Input:</p>
  
  <pre><code>{
  "first_name" : "Sample" ,
  "last_name" : "Name" ,
  "age"  : 19,
  "gender" : "Male",
  "phone_number"  :  9080245591,
  "email" : "samplle@gmail.com",
  "password" : "uni=versity"
  }
  </code></pre>
  
  <p>Any one can say how to check this input with use JSON schema in Java.</p>