Skip to content

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

Notifications You must be signed in to change notification 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

 
 
 

Languages