This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to branch fix-kotlin-blog-compatibility in repository https://gitbox.apache.org/repos/asf/fory-site.git
commit b5b4753bfb24856a5b38a6bf7d13c6766feb7bed Author: chaokunyang <[email protected]> AuthorDate: Tue Sep 8 11:49:14 2026 +0800 Simplify Kotlin JSON blog summary and ending --- blog/2026-09-07-fory_kotlin_json.md | 6 +++--- .../docusaurus-plugin-content-blog/2026-09-07-fory_kotlin_json.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/blog/2026-09-07-fory_kotlin_json.md b/blog/2026-09-07-fory_kotlin_json.md index f90353f8b2a..27698e43c35 100644 --- a/blog/2026-09-07-fory_kotlin_json.md +++ b/blog/2026-09-07-fory_kotlin_json.md @@ -6,7 +6,7 @@ authors: [chaokunyang] tags: [fory, kotlin, java, json, serialization, performance] --- -**TL;DR**: Apache Fory JSON brings high-performance JSON serialization to Kotlin/JVM. It maps data classes, value classes, and sealed hierarchies to JSON while preserving constructor defaults and nullability. String and direct UTF-8 APIs are available without a `kotlin-reflect` dependency. In benchmarks covering small messages and large documents, Fory delivers higher throughput than kotlinx.serialization, Moshi, and Jackson Kotlin. +**TL;DR**: Apache Fory JSON brings high-performance JSON serialization to Kotlin/JVM. It maps data classes, value classes, and sealed hierarchies to JSON while preserving constructor defaults and nullability. In benchmarks covering small messages and large documents, Fory delivers higher throughput than kotlinx.serialization, Moshi, and Jackson Kotlin. <img src="/img/fory-logo-light.png" width="50%"/> @@ -229,6 +229,6 @@ This module targets Kotlin/JVM and does not require `kotlin-reflect`. The [insta Android API 26 and later uses interpreted JSON mapping. With R8 or ProGuard enabled, add `fory-json-kotlin-ksp` and annotate required source models with `JsonType` to preserve mapping information. GraalVM Native Image uses the `ForyJsonProvider` workflow to install the Kotlin module and select reachable models for code generation. The [platform guide](/docs/json/kotlin#graalvm-and-android) covers both setups. Kotlin/Native, Kotlin/JS, and Kotlin/Wasm are outside this module's scope. -## Get Started {#learn-more} +## Further Reading {#learn-more} -Add `fory-json-kotlin` to your application and try a round trip with one of your Kotlin models. The [Kotlin JSON guide](/docs/json/kotlin) covers type mapping and configuration; see [Custom Codecs](/docs/json/custom-codecs) for application-specific representations and [Security](/docs/json/security) for input limits. Source code and contribution instructions are available at [apache/fory](https://github.com/apache/fory). +The [Kotlin JSON guide](/docs/json/kotlin) covers type mapping and configuration; see [Custom Codecs](/docs/json/custom-codecs) for application-specific representations and [Security](/docs/json/security) for input limits. Source code and contribution instructions are available at [apache/fory](https://github.com/apache/fory). diff --git a/i18n/zh-CN/docusaurus-plugin-content-blog/2026-09-07-fory_kotlin_json.md b/i18n/zh-CN/docusaurus-plugin-content-blog/2026-09-07-fory_kotlin_json.md index c6bda4b29b1..8a25280e288 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-blog/2026-09-07-fory_kotlin_json.md +++ b/i18n/zh-CN/docusaurus-plugin-content-blog/2026-09-07-fory_kotlin_json.md @@ -6,7 +6,7 @@ authors: [chaokunyang] tags: [fory, kotlin, java, json, serialization, performance] --- -**摘要**:Apache Fory JSON 为 Kotlin/JVM 提供高性能 JSON 序列化,支持数据类、值类和 sealed 层次结构,并保留构造函数默认值与可空性。它提供 String 和直接 UTF-8 API,无需依赖 `kotlin-reflect`。在涵盖小消息和大文档的基准测试中,Fory 的吞吐量高于 kotlinx.serialization、Moshi 和 Jackson Kotlin。 +**摘要**:Apache Fory JSON 为 Kotlin/JVM 提供高性能 JSON 序列化,支持数据类、值类和 sealed 层次结构,并保留构造函数默认值与可空性。在涵盖小消息和大文档的基准测试中,Fory 的吞吐量高于 kotlinx.serialization、Moshi 和 Jackson Kotlin。 <img src="/img/fory-logo-light.png" width="50%"/> @@ -229,6 +229,6 @@ MediaContent 展示了映射一个通过构造函数创建的小模型并处理 Android API 26 及更高版本使用解释执行的 JSON 映射。启用 R8 或 ProGuard 时,应添加 `fory-json-kotlin-ksp`,并为所需的源码模型标注 `JsonType`,以保留映射信息。GraalVM Native Image 通过 `ForyJsonProvider` 安装 Kotlin 模块,并选择可达模型进行代码生成。[平台指南](/docs/json/kotlin#graalvm-and-android)提供了这两种环境的配置方式。Kotlin/Native、Kotlin/JS 和 Kotlin/Wasm 不在此模块的支持范围内。 -## 开始使用 {#learn-more} +## 延伸阅读 {#learn-more} -在应用中添加 `fory-json-kotlin`,选取一个 Kotlin 模型尝试往返转换。[Kotlin JSON 指南](/docs/json/kotlin)介绍了类型映射和配置;应用需要特定表示方式时,请参阅[自定义编解码器](/docs/json/custom-codecs);输入限制见[安全指南](/docs/json/security)。源码和贡献说明位于 [apache/fory](https://github.com/apache/fory)。 +[Kotlin JSON 指南](/docs/json/kotlin)介绍了类型映射和配置;应用需要特定表示方式时,请参阅[自定义编解码器](/docs/json/custom-codecs);输入限制见[安全指南](/docs/json/security)。源码和贡献说明位于 [apache/fory](https://github.com/apache/fory)。 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
