https://github.com/kmecpp/jflame
A lightweight, yet extremely fast JSON parser and generator (still under heavy development)
https://github.com/kmecpp/jflame
Last synced: 10 months ago
JSON representation
A lightweight, yet extremely fast JSON parser and generator (still under heavy development)
- Host: GitHub
- URL: https://github.com/kmecpp/jflame
- Owner: kmecpp
- License: mit
- Created: 2015-12-25T21:42:46.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-23T01:29:52.000Z (over 7 years ago)
- Last Synced: 2025-01-27T19:32:58.394Z (12 months ago)
- Language: Java
- Homepage:
- Size: 108 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JFlame
A lightweight and extremely fast JSON parser and generator. This project aims to provide all the tools necessary to quickly and effectively create applications utilizing JSON. The JFlame's main goal is simply raw power, it's designed to run as fast as possible and as a result, a lot of the ideas for the parser came from ralfstx's [minimal-json](https://github.com/ralfstx/minimal-json). The API was designed to be as simple and intuitive as possible but still include everything you need to create, and manipulate simple JSON.
##Examples:
###Manipulate JSON data
Parse a JSON string
```
JsonValue value = Json.parse(jsonString);
```
Generate a JSON string from an object
```
String json = jsonValue.toString();
```
Generate a formatted JSON string from an object
```
String jsonFormatted = jsonObj.getFormatted();
```
Customize your JSON formatting
```
String jsonFormatted = jsonObj.getFormatted("\t");
```
###Interacting with REST webservices
Read data
```
Json.readJsonFromUrl("http://example.com/users/joe/stats");
```
Post data
```
Json.postJsonToUrl("http://example.com/users/joe/stats/add", jsonObj);
```
## Maven
```
kmecpp-repo
http://repo.kmecpp.com/maven
com.kmecpp
jflame
1.0
```