{"id":31847212,"url":"https://github.com/leadpony/justify-examples","last_synced_at":"2025-10-24T19:16:45.391Z","repository":{"id":97726280,"uuid":"145427623","full_name":"leadpony/justify-examples","owner":"leadpony","description":"Demonstrates how to validate JSON documents against JSON schemas using Justify.","archived":false,"fork":false,"pushed_at":"2021-02-28T08:02:01.000Z","size":156,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-09T19:05:28.309Z","etag":null,"topics":["java","json-binding","json-processing","json-schema","validator"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leadpony.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-08-20T14:20:06.000Z","updated_at":"2022-11-22T23:25:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0c943d8-66e9-46f7-8f8a-87914bfd5045","html_url":"https://github.com/leadpony/justify-examples","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/leadpony/justify-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leadpony%2Fjustify-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leadpony%2Fjustify-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leadpony%2Fjustify-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leadpony%2Fjustify-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leadpony","download_url":"https://codeload.github.com/leadpony/justify-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leadpony%2Fjustify-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003406,"owners_count":26083581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","json-binding","json-processing","json-schema","validator"],"created_at":"2025-10-12T09:29:48.857Z","updated_at":"2025-10-12T09:30:00.785Z","avatar_url":"https://github.com/leadpony.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Justify Examples\n[![Build Status](https://travis-ci.org/leadpony/justify-examples.svg?branch=master)](https://travis-ci.org/leadpony/justify-examples)\n\nThis project provides various kinds of code samples demonstrating how to validate JSON documents based on [JSON Schema Specification], using [Justify].\n\n## How to Build Examples\n\n### Prerequisites\n\nThe following tools are required to build and run the examples in this repository.\n\n* JDK 9 or higher\n* One of the following build tools\n  * [Apache Maven] 3.6.2 or higher\n  * [Gradle] 6.8.3 or higher\n\n### Downloading Examples\n\nAll of the examples can be downloaded from [Releases Page](https://github.com/leadpony/justify-examples/releases/).\n\n#### _For Justify version 2 users_\n\nPreviously released examples for Justify version 2 can be downloaded from [Release v2.1.0](https://github.com/leadpony/justify-examples/releases/tag/v2.1.0).\n\n### Building Examples\n\nThe commands below build all of the examples.\n\n#### Build with Maven\n```bash\n$ cd path/to/justify-examples\n$ mvn package\n```\n\n#### Build with Gradle\n```bash\n$ cd path/to/justify-examples\n$ gradle build\n```\n\n## Examples\n\n### 1. [Basic Parser](justify-examples-basicparser/README.md)\n\nThis code sample shows how to validate a JSON document using the Streaming API of [Jakarta JSON Processing API] (JSON-P).\n\n### 2. [Basic Reader](justify-examples-basicreader/README.md)\n\nThis code sample shows how to validate a JSON document using the Object Model API of [Jakarta JSON Processing API] (JSON-P).\n\n### 3. [Binding](justify-examples-binding/README.md)\n\nThis code sample shows how to validate a JSON document while unmarshalling the JSON document into a Plain Old Java Object, using [Jakarta JSON Binding API] (JSON-B).\n\n### 4. [Problem Handler](justify-examples-problemhandler/README.md)\n\nThis code sample shows how to implement your own problem handler,\nwhich processes the problems found in the validation.\n\n### 5. [Schema Builder](justify-examples-schemabuilder/README.md)\n\nThis code sample shows how to build a JSON schema programmatically.\nThe code validates a JSON document against the built schema.\n\n### 6. [Schema Resolver](justify-examples-schemaresolver/README.md)\n\nThis code sample shows how to resolve a referenced external JSON schema using\nthe implementation class of JsonSchemaResolver.\n\n### 7. [Custom Format](justify-examples-customformat/README.md)\n\nThis code sample shows how to implement your own format attribute,\nwhich can be used as the value of \"format\" keyword in the schema definition.\n\n### 8. [Default Value](justify-examples-defaultvalue/README.md)\n\nThis code sample shows how to fill the missing properties and/or items in the instance with default values given by `default` keyword in the schema.\n\n### 9. [YAML Validator](justify-examples-yamlvalidator/README.md)\n\nThis code sample demonstrates how to validate a YAML document using JsonParser and JsonReader of [Jakarta JSON Processing API].\n\n## License\n\nAll code samples in this repository are free and unencumbered software released into the public domain. Please read [LICENSE] file for more information.\n\n[JSON Schema Specification]: https://json-schema.org/\n[Justify]: https://github.com/leadpony/justify\n[Jakarta JSON Processing API]: https://eclipse-ee4j.github.io/jsonp/\n[Jakarta JSON Binding API]: http://json-b.net/\n[LICENSE]: LICENSE\n[Apache Maven]: https://maven.apache.org/\n[Gradle]: https://gradle.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleadpony%2Fjustify-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleadpony%2Fjustify-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleadpony%2Fjustify-examples/lists"}