GitHub
github.com › stleary › JSON-java
GitHub - stleary/JSON-java: A reference implementation of a JSON package in Java. · GitHub
import org.json.JSONObject; public class Test { public static void main(String args[]){ JSONObject jo = new JSONObject("{ \"abc\" : \"def\" }"); System.out.println(jo); } }
Starred by 4.7K users
Forked by 2.6K users
Languages Java
GitHub
github.com › fangyidong › json-simple
GitHub - fangyidong/json-simple: A simple Java toolkit for JSON. You can use json-simple to encode or decode JSON text. · GitHub
A simple Java toolkit for JSON. You can use json-simple to encode or decode JSON text. - fangyidong/json-simple
Starred by 758 users
Forked by 343 users
Languages Java
GitHub
github.com › ralfstx › minimal-json
GitHub - ralfstx/minimal-json: A fast and small JSON parser and writer for Java · GitHub
It's not an object mapper, but ... minimal memory footprint (e.g. no HashMaps) simple: reading, writing and modifying JSON with minimal code (short names, fluent style)...
Starred by 738 users
Forked by 188 users
Languages Java 93.9% | JavaScript 4.4%
GitHub
github.com › a2800276 › json.java
GitHub - a2800276/json.java: simple json parser for java
JSON json = new JSON(); char [] arr = … while (arr = somebitofwhatever) { // bad example* json.parse(arr); if (json.done()) break; } Object parsed_json = json.obj(); It's written in a very simplistic style that some people may not like. For example, I tend to use short variable names, use ...
Author a2800276
GitHub
github.com › fangyidong › json-simple › blob › master › src › main › java › org › json › simple › parser › JSONParser.java
json-simple/src/main/java/org/json/simple/parser/JSONParser.java at master · fangyidong/json-simple
import java.util.Map;
·
· import org.json.simple.JSONArray;
· import org.json.simple.JSONObject;
·
·
· /**
· * Parser for JSON text. Please note that JSONParser is NOT thread-safe.
· *
· * @author FangYidong<fangyidong@yahoo.com.cn>
·
Author fangyidong
Cliftonlabs
cliftonlabs.github.io › json-simple
json-simple
After redesigning the library to be backwards compatible it was decided that support for java 2 to 6 would be dropped in favor of generics (thus a 2.* version) as it was the most avidly requested feature. The library was also written in the package org.json.simple so a maven artifact under the org.json.simple groupId made sense.
GitHub
github.com › sigpwned › jsonification
GitHub - sigpwned/jsonification: Simple JSON library for Java
Jsonification is a simple, dependency-free JSON processing library that tries to make working with JSON in Java simple and natural, no matter what your task or program architecture is. Jsonification provides ways to parse and emit JSON incrementally, which is perfect for working with large JSON documents, or as a tree, which makes manipulating small JSON documents like API responses a senap. For example, parsing an example Twitter API response and pulling out a few fields is just a few simple lines of code:
Starred by 3 users
Forked by 2 users
Languages Java 100.0% | Java 100.0%
GitHub
github.com › acanimal › java-json-examples
GitHub - acanimal/java-json-examples: Examples reading JSON files with Java
Examples reading JSON files with Java. Contribute to acanimal/java-json-examples development by creating an account on GitHub.
Starred by 3 users
Forked by 5 users
Languages Java 100.0% | Java 100.0%
GitHub
github.com › antonsjava › json
GitHub - antonsjava/json: json - small library for manipulating json data structures
Than it is possible to use appropriate API from JsonObject or JsonArray to build whole json data structure tree. This is simple example of such construction of following data structure
Author antonsjava
GitHub
github.com › fangyidong › json-simple › blob › master › src › main › java › org › json › simple › JSONObject.java
json-simple/src/main/java/org/json/simple/JSONObject.java at master · fangyidong/json-simple
* $Id: JSONObject.java,v 1.1 2006/04/15 14:10:48 platform Exp $
· * Created on 2006-4-10
· */
· package org.json.simple;
·
· import java.io.IOException;
· import java.io.StringWriter;
· import java.io.Writer;
· import java.util.HashMap;
·
Author fangyidong
GitHub
github.com › coolaj86 › json-examples › tree › master › java › jackson
json-examples/java/jackson at master · coolaj86/json-examples
Examples of JSON parsing / generation and http requests in various languages - coolaj86/json-examples
Author coolaj86
GitHub
github.com › pwall567 › json-simple
GitHub - pwall567/json-simple: Simple JSON Parser and Formatter · GitHub
See the JavaDoc for more information, including changing the indentation size and line terminator. The latest version of the library is 2.1, and it may be obtained from the Maven Central repository. <dependency> <groupId>io.jstuff</groupId> <artifactId>json-simple</artifactId> <version>2.1</version> </dependency>
Author pwall567
GitHub
github.com › RameshMF › jackson-json-tutorial
GitHub - RameshMF/jackson-json-tutorial: Tutorial and examples of Jackson APIs
Jackson @JsonInclude Example · ObjectMapper - Java to JSON · ObjectMapper - JSON to Java Object · Convert List to JSON Array Using Jackson · Convert Set to JSON Array Using Jackson · Jackson - Convert Map to JSON Object · Jackson – Convert JSON string to Map ·
Starred by 13 users
Forked by 8 users
Languages Java 100.0% | Java 100.0%
GitHub
gist.github.com › jncornett › 33f5bfb4315d599d44da33bc7f1dcd3f
JSON.simple decoding examples wiki formatted to make it readable · GitHub
String jsonText = "[[null, 123.45, \"a\tb c\"]}, true"; JSONParser parser = new JSONParser(); try{ parser.parse(jsonText); } catch(ParseException pe){ System.out.println("position: " + pe.getPosition()); System.out.println(pe); } Result: position: 25 Unexpected token RIGHT BRACE(}) at position 25. Please refer ParseException.java for more information.
GitHub
github.com › RalleYTN › SimpleJSON
GitHub - RalleYTN/SimpleJSON: An improved version of json-simple for Java 11+
An improved version of json-simple for Java 11+. Contribute to RalleYTN/SimpleJSON development by creating an account on GitHub.
Starred by 12 users
Forked by 8 users
Languages Java 100.0% | Java 100.0%
GitHub
gist.github.com › Phoenix-Effect › 58157b6f7b554ba27d3aac660737f9d0
Example of how you can read and parse JSON file in Java. Requires JSON library. · GitHub
Example of how you can read and parse JSON file in Java. Requires JSON library. - main.java
GitHub
github.com › llbit › jo-json
GitHub - llbit/jo-json: Small Java JSON Library
import se.llbit.json.*; ... try (JsonParser parser = new JsonParser(inputStream)) { JsonValue json = parser.parse(); for (JsonValue entry : json.asArray()) { JsonObject person = entry.asObject(); String name = person.get("name").asString("name"); ...
Author llbit
GitHub
github.com › ajermakovics › json
GitHub - ajermakovics/json: Simple and convenient Json in Java
Json addr = new Json() { String host = "localhost"; int port = 80; }; addr.toString(); // {"host": "localhost", "port": 80} addr.set("path", "/").set("proto", "http"); addr.get("port"); // 80 · See tests for more examples.
Starred by 20 users
Forked by 3 users
Languages Java 100.0% | Java 100.0%
GitHub
github.com › mmastrac › nanojson
GitHub - mmastrac/nanojson: A tiny, compliant JSON parser and writer for Java
JsonWriter is a simple, stateful JSON writer that can output to a String, or to anything implementing the Java Appendable interface.
Starred by 109 users
Forked by 27 users
Languages Java 100.0% | Java 100.0%
GitHub
github.com › bowbahdoe › json
GitHub - bowbahdoe/json: A Java JSON Library intended to be easy to learn and simple to teach
import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.Module; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import dev.mccue.json.*; import dev.mccue.json.stream.JsonWriteable; import org.springframework.context.an
Starred by 43 users
Forked by 5 users
Languages Java 100.0% | Java 100.0%