Skip to content

About

Java tool for converting .json files to JsonObject or JsonArray.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

JSON Parser

Used for converting .json files to JsonObject or JsonArray.

API

  • Parse json to JsonArray or JsonObject type.
public class JsonParser {
    ...
    /**
     * Parse json to {@code JsonArray} or {@code JsonObject} type.
     * @param jsonString {@code String} represented .json file.
     * @return {@code Object}.
     * @throws IOException I/O exception.
     */
    public static Object fromJSON(String jsonString) throws IOException {
    }
    ...
}
  • Convert from JsonObject ot JsonArray to string.
public class JsonParser {
    ...
    /**
     * Converts {@code JsonArray} to {@code String} representation in Json notation.
     * @param array {@code JsonArray} object to convert.
     * @return {@code String}
     */
    public static String toJson(JsonArray array) {
    }

    /**
     * Converts {@code JsonArray} to {@code String} representation in Json notation.
     * @param object {@code JsonObject} object to convert.
     * @return {@code String}
     */
    public static String toJson(JsonObject object) {
    }
    ...
}

Development timing: ~ 25-27 October 2022

About

Java tool for converting .json files to JsonObject or JsonArray.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages