Skip to content

This is a Java Project that helps to manage ".json", ".pis" and other associated documents.

Notifications You must be signed in to change notification settings

Petersburg2020/Json

Repository files navigation

Json

This is a Java Project that helps to manage ".json", ".pis" and other associated documents.

How To Add Json To Gradle

You can add Data to your Java Project by following the steps below:

Step 1.

Add the JitPack repository to your build file.

Add it in your root build.gradle at the end of repositories:

add jitpack to build

Step 2.

Add the dependency:

add json

Change Tag to the latest version of this Project (Jitpack)

How to Use Json

Initiate Json using the various Json options listed below:

a. All packages in Json

json packages

b. All objects in json package

json objects

c. All objects in pis package

pis objects

This is how to initiate it; using the Java syntax:

a. Create the Writer:

Json – Main java  Json main  12_26_2022 2_26_15 PM

Json – Main java  Json main  12_26_2022 2_37_13 PM

b. Set the path

c. Create the root storage

d. Get the root object

e. Add any key (String) - value (Any Object pair)

N.B: Objects can be any of these:

  • int,
  • float,
  • long,
  • double,
  • Object,
  • List/JsonArray (Represents JsonArray), &
  • Map/JsonObject (Represents JsonObject)

N.B: JsonElement is the superclass of JsonObject & JsonArray

The full documentation will soon be released.

Stay tuned!

About

This is a Java Project that helps to manage ".json", ".pis" and other associated documents.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages