Giter VIP home page Giter VIP logo

4dpop-json-validator's Introduction

4DPop JSON Validator

language language code-size license

4D v16 R4 introduces a new command: JSON Validate. This command allows you to verify that a JSON document is “valid” according to your JSON schema.

This is really useful for exchanging information between servers or between a server and its client. Thanks to JSON schema standards, you can define a “protocol” for communication with your server or an external server. More details can be found in this blog post.

We use this new command internally at 4D SAS to validate our own JSON files, mainly for unit testing purposes. Instead of having each developer creating their own tools to validate their JSON files, we’ve created a simple tool to validate a JSON file according to a given JSON schema. This tool provides a user-friendy interface to select your JSON schema and your JSON file to validate. It also helps you to quickly see where the issues are. In fact, a list of potential errors are displayed in a listbox; and when you click on an error, the JSON text concerned is highlighted directly in the file content.

We think this tool can be useful for you as well, so we decided to share it with you:

Below is a quick example to show you what this is all about. On the left, we have a JSON schema example and on the right, the JSON file to validate with the rules given in the schema on the left.

JSON Validator interface with a non-valid JSON

interface

4dpop-json-validator's People

Contributors

adriencagniant avatar e-marchand avatar vdelachaux avatar

Stargazers

 avatar

Watchers

 avatar

4dpop-json-validator's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.