Apache Fory serialization framework adds JSON support for Kotlin and Scala

Apache Fory serialization framework adds JSON support for Kotlin and Scala

Fory 1.7.0 release also expands Swift platform support and supports incremental JSON stream decoding for top-level arrays and newline-delimited JSON. The Apache Fory community has announced the release of Fory 1.7.0, an update of the multi-language serialization framework that adds Fory JSON support for Scala 2.13 and Scala 3 and for Kotlin on Android, the JVM, and GraalVM Native Image. Apache Fory is described as a “blazingly fast” serialization framework for idiomatic domain objects, schema IDL (interface definition language), and cross-language data exchange. It draws on JIT (just-in-time) compilation and zero-copy techniques for high performance and supports 12 programming languages including Java, Python, C++, Go, Rust, and JavaScript/TypeScript. Fory IDL is a schema definition language for Apache Fory that enables type-safe cross-language serialization. Fory IDL can also describe RPC services, and the Fory compiler can generate gRPC service companions that use Fory serialization for request and response payloads. With the Fory 1.7.0 release, developers get fory-json-scala for Scala 2.13 and Scala 3. Scala applications can read and write standard JSON using case classes, constructor defaults, Option, Either, tuples, collections, maps, and value classes, according to the release notes. The module works on the JVM and GraalVM Native Image. Fory 1.7.0 also introduces the fory-json-kotlin module, which maps Kotlin models to standard JSON while preserving constructor defaults, nullability, unsigned types, value classes, and generic arguments. The module supports the JVM, Android API 26 and later, and GraalVM Native Image. Fory 1.7.0 release highlights also include the following: Fory JSON on GraalVM Native Image has been enhanced with build-time code generation enabled by default and fine-grained generated codec caching. Incremental JSON stream decoding for top-level arrays and newline-delimited JSON (NDJSON) allows values to be processed progressively from chunked UTF-8 input. Swift platform support has been expanded to visionOS, watchOS, tvOS, and Linux, and now includes Swift gRPC code generation. Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG. More from this author Show me more

Original Source

Read the full article at Infoworld →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.