Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Fastjson2 | 3,036 | 33,509 | 2,744 | a day ago | 328 | July 29, 2023 | 212 | apache-2.0 | Java | |
🚄 FASTJSON2 is a Java JSON library with excellent performance. | ||||||||||
Sql Generator | 1,923 | a year ago | 1 | May 18, 2022 | 1 | apache-2.0 | Vue | |||
🔨 用 JSON 来生成结构化的 SQL 语句,基于 Vue3 + TypeScript + Vite + Ant Design + MonacoEditor 实现,项目简单(重逻辑轻页面)、适合练手~ | ||||||||||
Just Dashboard | 1,489 | 3 | 3 | 2 years ago | 29 | July 13, 2019 | 49 | mit | JavaScript | |
:bar_chart: :clipboard: Dashboards using YAML or JSON files | ||||||||||
Ustore | 375 | a month ago | 29 | apache-2.0 | C++ | |||||
Multi-Modal Database replacing MongoDB, Neo4J, and Elastic with 1 faster ACID solution, with NetworkX and Pandas interfaces, and bindings for C 99, C++ 17, Python 3, Java, GoLang 🗄️ | ||||||||||
Wrangler | 79 | 5 | 3 | 7 days ago | 16 | November 30, 2018 | 23 | apache-2.0 | Java | |
Wrangler Transform: A DMD system for transforming Big Data | ||||||||||
Spark Select | 53 | 4 years ago | 5 | April 04, 2019 | apache-2.0 | Scala | ||||
A library for Spark DataFrame using MinIO Select API | ||||||||||
Bagri | 35 | 5 years ago | 2 | February 03, 2018 | 54 | apache-2.0 | Java | |||
XML/Document DB on top of distributed cache | ||||||||||
Couchdb Mango | 34 | 2 years ago | 3 | apache-2.0 | Erlang | |||||
Mirror of Apache CouchDB Mango | ||||||||||
Ytpriv | 28 | 2 years ago | 13 | October 12, 2021 | 7 | gpl-3.0 | Go | |||
YT metadata exporter | ||||||||||
Nifi Rule Engine Processor | 25 | 4 years ago | apache-2.0 | Java | ||||||
Drools processor for Apache NiFi |
FASTJSON 2
Java JSON
FASTJSON 2``FASTJSON
FASTJSON 1autoTypeJDK 11
/JDK 17``compact string
RecordGraalVM Native-Image
JSONPath
SQL:2016JSONPathAndroid 8+
APIKotlin
https://alibaba.github.io/fastjson2/kotlin_cn
JSON Schema
https://alibaba.github.io/fastjson2/json_schema_cn
fastjson v2``groupId``1.x``com.alibaba.fastjson2
Maven
:
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>2.0.40</version>
</dependency>
Gradle
:
dependencies {
implementation 'com.alibaba.fastjson2:fastjson2:2.0.40'
}
Fastjson v1
fastjson 1.2.x
100%
Maven
:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>2.0.40</version>
</dependency>
Gradle
:
dependencies {
implementation 'com.alibaba:fastjson:2.0.40'
}
Fastjson Kotlin
Kotlin``fastjson-kotlin``kotlin
Maven
:<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-kotlin</artifactId>
<version>2.0.40</version>
</dependency>
(kotlin-stdlib)(kotlin-reflect) (data class)
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>${kotlin-version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
<version>${kotlin-version}</version>
</dependency>
Kotlin Gradle
:dependencies {
implementation("com.alibaba.fastjson2:fastjson2-kotlin:2.0.40")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
}
Fastjson Extension
SpringFramework``fastjson-extension
SpringFramework Support
Maven
:
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-extension-spring5</artifactId>
<version>2.0.40</version>
</dependency>
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-extension-spring6</artifactId>
<version>2.0.40</version>
</dependency>
Gradle
:
dependencies {
implementation 'com.alibaba.fastjson2:fastjson2-extension-spring5:2.0.40'
}
dependencies {
implementation 'com.alibaba.fastjson2:fastjson2-extension-spring6:2.0.40'
}
fastjson v2``package``1.x``com.alibaba.fastjson2``fastjson1
JSON``JSONObject
Java
:
String text = "...";
JSONObject data = JSON.parseObject(text);
byte[] bytes = ...;
JSONObject data = JSON.parseObject(bytes);
Kotlin
:
import com.alibaba.fastjson2.*
val text = ... // String
val data = text.parseObject()
val bytes = ... // ByteArray
val data = bytes.parseObject() // JSONObject
JSON``JSONArray
Java
:
String text = "...";
JSONArray data = JSON.parseArray(text);
Kotlin
:
import com.alibaba.fastjson2.*
val text = ... // String
val data = text.parseArray() // JSONArray
JSON``Java
Java
:
String text = "...";
User data = JSON.parseObject(text, User.class);
Kotlin
:
import com.alibaba.fastjson2.*
val text = ... // String
val data = text.to<User>() // User
val data = text.parseObject<User>() // User
Java``JSON
Java
:
Object data = "...";
String text = JSON.toJSONString(data);
byte[] text = JSON.toJSONBytes(data);
Kotlin
:
import com.alibaba.fastjson2.*
val data = ... // Any
val text = text.toJSONString() // String
val bytes = text.toJSONByteArray() // ByteArray
JSONObject``JSONArray
String text = "{\"id\": 2,\"name\": \"fastjson2\"}";
JSONObject obj = JSON.parseObject(text);
int id = obj.getIntValue("id");
String name = obj.getString("name");
String text = "[2, \"fastjson2\"]";
JSONArray array = JSON.parseArray(text);
int id = array.getIntValue(0);
String name = array.getString(1);
JavaBean
Java
:
JSONArray array = ...
JSONObject obj = ...
User user = array.getObject(0, User.class);
User user = obj.getObject("key", User.class);
Kotlin
:
val array = ... // JSONArray
val obj = ... // JSONObject
val user = array.to<User>(0)
val user = obj.to<User>("key")
JavaBean
Java
:
JSONArray array = ...
JSONObject obj = ...
User user = obj.toJavaObject(User.class);
List<User> users = array.toJavaList(User.class);
Kotlin
:
val array = ... // JSONArray
val obj = ... // JSONObject
val user = obj.to<User>() // User
val users = array.toList<User>() // List<User>
JavaBean``JSON
Java
:
class User {
public int id;
public String name;
}
User user = new User();
user.id = 2;
user.name = "FastJson2";
String text = JSON.toJSONString(user);
byte[] bytes = JSON.toJSONBytes(user);
Kotlin
:
class User(
var id: Int,
var name: String
)
val user = User()
user.id = 2
user.name = "FastJson2"
val text = user.toJSONString() // String
val bytes = user.toJSONByteArray() // ByteArray
:
{
"id" : 2,
"name" : "FastJson2"
}
JSONB
JavaBean``JSONB
User user = ...;
byte[] bytes = JSONB.toBytes(user);
byte[] bytes = JSONB.toBytes(user, JSONWriter.Feature.BeanToArray);
JSONB``JavaBean
byte[] bytes = ...
User user = JSONB.parseObject(bytes, User.class);
User user = JSONB.parseObject(bytes, User.class, JSONReader.Feature.SupportBeanArrayMapping);
JSONPath
JSONPath
String text = ...;
JSONPath path = JSONPath.of("$.id"); //
JSONReader parser = JSONReader.of(text);
Object result = path.extract(parser);
JSONPath``byte[]
byte[] bytes = ...;
JSONPath path = JSONPath.of("$.id"); //
JSONReader parser = JSONReader.of(bytes);
Object result = path.extract(parser);
JSONPath``byte[]
byte[] bytes = ...;
JSONPath path = JSONPath.of("$.id"); //
JSONReader parser = JSONReader.ofJSONB(bytes); // ofJSONB
Object result = path.extract(parser);