All Projects β†’ stleary β†’ Json Java

stleary / Json Java

Licence: other
A reference implementation of a JSON package in Java.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Json Java

Hacktoberfest-2021
This repository aims to help code beginners with their first successful pull request and open source contribution. πŸ₯³πŸŽ―πŸš€
Stars: ✭ 24 (-99.4%)
Mutual labels:  hacktoberfest2021
Basic-Components-of-a-Web-Layout
No description or website provided.
Stars: ✭ 16 (-99.6%)
Mutual labels:  hacktoberfest2021
Ruby Jwt
A ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.
Stars: ✭ 3,224 (-18.83%)
Mutual labels:  hacktoberfest2021
dsalgo
Contains Algorithms useful for interview preparation, various practice problems of Arrays, Stacks, queue etc. Contributors are Welcome but, DO NOT MAKE THIS REPO ACT LIKE A SOURCE OF +1.
Stars: ✭ 45 (-98.87%)
Mutual labels:  hacktoberfest2021
geeks-for-geeks-solutions
Solutions of questions on Geeks-for-Geeks.Solution Available in C++.
Stars: ✭ 28 (-99.3%)
Mutual labels:  hacktoberfest2021
snipp.in
Fast, Light-weight, Notes, Snippet manager and code editor directly inside your browser
Stars: ✭ 151 (-96.2%)
Mutual labels:  hacktoberfest2021
github-readme-quotes
Dynamic quote generator for your GitHub readmes | Give a poetic touch to readmes
Stars: ✭ 128 (-96.78%)
Mutual labels:  hacktoberfest2021
Infosec reference
An Information Security Reference That Doesn't Suck; https://rmusser.net/git/admin-2/Infosec_Reference for non-MS Git hosted version.
Stars: ✭ 4,162 (+4.78%)
Mutual labels:  hacktoberfest2021
WhatsApp-Scraping
Python script to get WhatsApp iformation frrom WhatsApp Web
Stars: ✭ 76 (-98.09%)
Mutual labels:  hacktoberfest2021
Flux.jl
Relax! Flux is the ML library that doesn't make you tensor
Stars: ✭ 3,358 (-15.46%)
Mutual labels:  hacktoberfest2021
Coffeegram
Android app using Jetpack Compose together with StateFlow and MVI
Stars: ✭ 155 (-96.1%)
Mutual labels:  hacktoberfest2021
DSA
Implementation of various data structures and algorithms.
Stars: ✭ 15 (-99.62%)
Mutual labels:  hacktoberfest2021
Sequel Ace
MySQL/MariaDB database management for macOS
Stars: ✭ 3,989 (+0.43%)
Mutual labels:  hacktoberfest2021
HacktoberFest-2021
No description or website provided.
Stars: ✭ 278 (-93%)
Mutual labels:  hacktoberfest2021
Volta
Volta: JS Toolchains as Code. ⚑
Stars: ✭ 4,810 (+21.1%)
Mutual labels:  hacktoberfest2021
All Program helper
add PR and i ll merge it with hacktoberfest-accepted tag
Stars: ✭ 34 (-99.14%)
Mutual labels:  hacktoberfest2021
go-stone-openbank
A Go library to connect with Stone Open Banking API
Stars: ✭ 31 (-99.22%)
Mutual labels:  hacktoberfest2021
Kornia
Open Source Differentiable Computer Vision Library
Stars: ✭ 5,615 (+41.36%)
Mutual labels:  hacktoberfest2021
Super Productivity
To-do list & time tracker for programmers and other digital workers with Jira, Github, and Gitlab integration
Stars: ✭ 4,505 (+13.42%)
Mutual labels:  hacktoberfest2021
Openlibrary
One webpage for every book ever published!
Stars: ✭ 3,311 (-16.64%)
Mutual labels:  hacktoberfest2021

Json-Java logo

image credit: Ismael PΓ©rez Ortiz

JSON in Java [package org.json]

Maven Central

Click here if you just want the latest release jar file.

Overview

JSON is a light-weight language-independent data interchange format.

The JSON-Java package is a reference implementation that demonstrates how to parse JSON documents into Java objects and how to generate new JSON documents from the Java classes.

Project goals include:

  • Reliable and consistent results
  • Adherence to the JSON specification
  • Easy to build, use, and include in other projects
  • No external dependencies
  • Fast execution and low memory footprint
  • Maintain backward compatibility
  • Designed and tested to use on Java versions 1.6 - 1.11

The files in this package implement JSON encoders and decoders. The package can also convert between JSON and XML, HTTP headers, Cookies, and CDL.

The license includes this restriction: "The software shall be used for good, not evil." If your conscience cannot live with that, then choose a different package.

If you would like to contribute to this project

For more information on contributions, please see CONTRIBUTING.md

Bug fixes, code improvements, and unit test coverage changes are welcome! Because this project is currently in the maintenance phase, the kinds of changes that can be accepted are limited. For more information, please read the FAQ.

Build Instructions

The org.json package can be built from the command line, Maven, and Gradle. The unit tests can be executed from Maven, Gradle, or individually in an IDE e.g. Eclipse.

Building from the command line

Build the class files from the package root directory src/main/java

javac org/json/*.java

Create the jar file in the current directory

jar cf json-java.jar org/json/*.class

Compile a program that uses the jar (see example code below)

javac -cp .;json-java.jar Test.java (Windows)
javac -cp .:json-java.jar Test.java (Unix Systems)

Test file contents

import org.json.JSONObject;
public class Test {
    public static void main(String args[]){
       JSONObject jo = new JSONObject("{ \"abc\" : \"def\" }");
       System.out.println(jo.toString());
    }
}

Execute the Test file

java -cp .;json-java.jar Test (Windows)
java -cp .:json-java.jar Test (Unix Systems)

Expected output

{"abc":"def"}

Tools to build the package and execute the unit tests

Execute the test suite with Maven:

mvn clean test

Execute the test suite with Gradlew:

gradlew clean build test

Notes

For more information, please see NOTES.md

Files

For more information on files, please see FILES.md

Release history:

For the release history, please see RELEASES.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].