Giter Site home page Giter Site logo

yoru's Introduction

Yoru (夜)

A simple Java Util wrapper over jackson-binding for converting json to any object type and vice-versa.

Usage

Convert to Json

Use the toJson(T) method to convert any object of type T to JSON.

 Coordinates coordinates = new Coordinates(10, 20, 30);
 Yoru<Coordinates> converter = new Yoru<>();
 converter.toJson(coordinates);

Result:

{
  "x" : 10.0,
  "y" : 20.0,
  "z" : 30.0
}

Convert from Json

Use the fromJson(String content) method to convert json to any type T.

 Yoru<Coordinates> converter = new Yoru<>();
 Coordinates coordinates = converter.fromJson(toJsonExpectation, Coordinates.class);

Download

This library can be used with both maven and gradle build environments. See instructions below for more details on how to add this to your project.

Step 1. Add the JitPack repository to your build file

maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

gradle

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency

maven

<dependency>
        <groupId>com.github.nextbss</groupId>
        <artifactId>yoru</artifactId>
        <version>1.0.2</version>
</dependency>

gradle

dependencies {
    implementation 'com.github.nextbss:yoru:1.0.2'
}

License

The library is available as open source under the terms of the MIT License.

yoru's People

Contributors

alexjuca avatar smaziano avatar dependabot[bot] avatar

Stargazers

Ray Li avatar Farouk Sabiou avatar Pedro Massango avatar Márcio Quimbundo avatar Braulio Cassule avatar  avatar Henrick avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

alexjuca

yoru's Issues

The Mother of Issues

I'm calling the mother of issues because it's based on code style violations that can be found in the project.
Because there multiple of them I'm attaching a print screen from the file that can be found at l when running the mvn site:run locally.

Here are how it looks:
code_styles_so_far

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.