The JSON Validation Service (JVS) is a validator that allows every users to check JSON objects
-
If received JSON is valid, it is formatted to human-readable form and sent back.
-
If data in a request is not conform to the JSON grammar, the following response is sent:
{ "errorMessage" : "plain language description of the problem", "errorPlace" : "the point where error has occurred" }
Build gradle package and run Docker image:
$ ./gradlew build docker
$ docker run -d -p 80:80 kspt.spbstu/json_validator
To test that JVS is working properly, make a POST request as shown below:
s curl --data-binary @filename.json http://localhost:80
Or PUT request as shown below:
s curl --upload-file filename.json http://localhost:80
This project is licensed under the MIT License - see the LICENSE file for details