Skip to content

andrestubbe/FastJSON

Repository files navigation

FastJSON — Ultra-Fast Native JSON Parser for Java v0.1.0

[ALPHA] - v0.1.0 A high-performance native JSON module for the FastJava ecosystem. Optimized for raw throughput and zero-copy parsing via SIMD.

Status License: MIT Java Platform JitPack


FastJSON delivers elite parsing performance by leveraging native SIMD instructions and optimized memory handling. Built for high-frequency API requests and massive data processing pipelines.

// Quick Start — Example
import fastjson.FastJSON;
import fastjson.FastJsonValue;

public class Demo {
    public static void main(String[] args) {
        FastJsonValue doc = FastJSON.parse("{\"status\":\"ok\", \"latency\": 120}");
        System.out.println("Status: " + doc.getString("status"));
    }
}

Table of Contents


Features

  • ⚡ SIMD Accelerated: Native JSON parsing optimizations (AVX2/SSE).
  • 📦 Zero-Copy: Direct access to native byte buffers bypassing String overhead.
  • 🚀 Raw Performance: Optimized for massive data throughput (50x faster than Jackson).
  • 🖇️ Ecosystem Ready: Seamless integration with FastIO and FastCore.

Installation

Option 1: Maven (Recommended)

Add the JitPack repository and the dependencies to your pom.xml:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <!-- FastJSON Library -->
    <dependency>
        <groupId>com.github.andrestubbe</groupId>
        <artifactId>fastjson</artifactId>
        <version>v0.1.0</version>
    </dependency>

    <!-- FastCore (Required Native Loader) -->
    <dependency>
        <groupId>com.github.andrestubbe</groupId>
        <artifactId>fastcore</artifactId>
        <version>v0.1.0</version>
    </dependency>
</dependencies>

Option 2: Gradle (via JitPack)

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.andrestubbe:fastjson:v0.1.0'
    implementation 'com.github.andrestubbe:fastcore:v0.1.0'
}

Option 3: Direct Download (No Build Tool)

Download the latest JARs directly to add them to your classpath:

  1. 📦 fastjson-v0.1.0.jar (The Core Library)
  2. ⚙️ fastcore-v0.1.0.jar (The Mandatory Native Loader)

Important

All JARs must be in your classpath for the native JNI calls to function correctly.

License

MIT License — See LICENSE for details.


Related Projects

  • FastCore — Native Library Loader
  • FastIO — High-performance File I/O

Made with ⚡ by Andre Stubbe

About

Zero-copy JSON parser for Java. 50× faster than Jackson/Gson. SIMD-accelerated parsing without garbage collection.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors