Giter Site home page Giter Site logo

98teg / jsonconfigfile Goto Github PK

View Code? Open in Web Editor NEW
38.0 2.0 5.0 2.01 MB

JSON Configuration File is a plugin for Godot that aims to aid reading user input via a JSON file.

License: MIT License

GDScript 100.00%
godot-engine gdscript json json-parsing

jsonconfigfile's Introduction

JSON Configuration File Banner

JSON Configuration File

JSON Configuration File is a plugin for Godot that aims to aid reading user input via a JSON file. Using a JSON file as a way to configure your Godot application would allow your users to share configuration files. Minecraft is a remarkable example that uses JSON files to configure certain aspects of the game, such as block models.

The definition of JSON Schemas inspired this plugin. However, instead of using a JSON file to define the structure of a JSON, it takes a coding approach. This approach has the advantage of allowing more features.

Code example

When using this plugin, you would be able to set up a configuration file with code like this: Code example This code would verify that this JSON file is valid: Valid JSON And it would also detect multiple errors in this JSON file with a single validation process: Incorrect JSON Please, check the documentation to learn how to set up your own JSON configuration file.

Features

This plugin would offer you:

  • Twelve different types of properties:
    • Booleans
    • Real numbers
    • Integers
    • Percentages
    • Strings
    • Enums
    • Arrays
    • Colors
    • Objects
    • Files
    • JSON Configuration Files
    • Images
  • The ability to detect multiple errors and warnings with a single call to the validation process.
  • A representation of the errors and warnings with dictionaries to allow customization of the messages.
  • The execution of code during the validation process to transform the data or to create custom tests.

Contributing

If you want to contribute with a new kind of property or a new feature, please consider also contributing to the documentation or adding new tests to the repository of tests for this plugin.

jsonconfigfile's People

Contributors

98teg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.