Skip to content
A library used for generating Json String of JSend
Java HCL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
docs
src
.gitignore
LICENSE
README.md
pom.xml

README.md

jsend

A library used for generating Json String of JSend

Maven Central

Setting

Maven

<dependency>
  <groupId>work.jeong.murry.jsend</groupId>
  <artifactId>jsend</artifactId>
  <version>1.0</version>
</dependency>

Gradle

dependencies {
    implementation("work.jeong.murry.jsend", "jsend", "{latest_version}")
}

Usage

sucess

    JSend success = JSend.success();

or

    Pet pet = new Pet("moon");
    JSend success = JSend.success(pet);

error

    JSend error = JSend.error("It has been occurred an error.");

or

    Pet pet = new Pet("moon");
    JSend error = JSend.error(500, "It has been occurred an error.", pet);

fail

    Pet pet = new Pet("moon");
    JSend fail = JSend.fail(pet);
You can’t perform that action at this time.