Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DeveloperRic/EasyJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

EasyJSON

EasyJSON is a class created to help simplify the JSON process. No need to create new Objects for each item you want to add. Simply use: foo.putPrimitive(value) or foo.putPrimitive(key, value) or foo.putArray(key, values...) or foo.putStructure("key"). You can also add items inline.

Example

EasyJSON json = EasyJSON.create("./easyJSON_example.json");
json.putStructure("pets").putArray("dogs").putPrimitive("pug");
json.search("pets", "dogs").putPrimitive("rottweiler");
json.search("pets").putArray("cats", "i'm not a cat guy");

will result in a structure like this:

easyJSON_example.json

{
 "pets":{
 "cats":["i'm not a cat guy"],
 "dogs":["pug", "rottweiler"]
 }
}

About

Java API for managing JSON files; based on the Simple JSON API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /