Skip to main content
Version: dev

Introduction

Binary Object Serialization reconstructs object graphs, including registered application types, collections, polymorphic values, and optional shared references.

Choose a mode

ModeUse it whenStart here
Xlang (default)Bytes cross language boundariesXlang Serialization
NativeEvery writer and reader uses one Fory implementation familyNative serialization

Xlang and native are the only object-serialization modes. Row Format is a random-access analytical representation, and Fory JSON is a Java JSON codec; use the format chooser when object reconstruction is not your goal.

Read the concepts and modes

Read these pages before choosing the Fory API for a language:

  1. Core Concepts explains object graphs, types, schemas, references, polymorphism, and schema evolution across both modes.
  2. Xlang Serialization explains the portable format used by default and the rules that Fory implementations in different languages must share.
  3. Native Serialization explains when an implementation-specific native format is appropriate.

Browse by language

Choose a language to find its installation route, lifecycle, exact APIs, configuration, type registration, schema behavior, extensions, platforms, and troubleshooting:

LanguageModesDocumentation
Javaxlang and nativeJava guide
Pythonxlang and nativePython guide
C++xlang and nativeC++ guide
Goxlang and nativeGo guide
Rustxlang and nativeRust guide
JavaScript/TypeScriptxlangJavaScript/TypeScript guide
C#xlangC# guide
SwiftxlangSwift guide
DartxlangDart guide
Scalaxlang and JVM nativeScala guide
Kotlinxlang and JVM nativeKotlin guide

Specifications