Skip to content

[213_25] Add JSON serialization for modification (collaborative editing transport)#2898

Open
cc-fuyu wants to merge 1 commit intoMoganLab:mainfrom
cc-fuyu:cc-fuyu/add-modification-json-serde
Open

[213_25] Add JSON serialization for modification (collaborative editing transport)#2898
cc-fuyu wants to merge 1 commit intoMoganLab:mainfrom
cc-fuyu:cc-fuyu/add-modification-json-serde

Conversation

@cc-fuyu
Copy link
Contributor

@cc-fuyu cc-fuyu commented Mar 1, 2026

Add JSON serde for modification in moebius, enabling OT operation transport over WebSocket for web-based collaborative editing.

New files:

  • moebius/moebius/data/json_serde.hpp (public API)
  • moebius/moebius/data/json_serde.cpp (implementation)
  • moebius/tests/moebius/data/json_serde_test.cpp (round-trip tests)

Uses existing scheme serialization for tree payloads and dot-separated path format. Includes a minimal JSON builder/parser to keep moebius dependency-light.

…ng transport)

Add JSON serde for modification in moebius, enabling OT operation
transport over WebSocket for web-based collaborative editing.

New files:
- moebius/moebius/data/json_serde.hpp (public API)
- moebius/moebius/data/json_serde.cpp (implementation)
- moebius/tests/moebius/data/json_serde_test.cpp (round-trip tests)

Uses existing scheme serialization for tree payloads and dot-separated
path format. Includes a minimal JSON builder/parser to keep moebius
dependency-light.
@Divinesoumyadip
Copy link

Great work on the JSON serde layer! I'm working on a GSoC proposal that builds on this planning to tackle the WebSocket server and WASM pipeline as the next layer. Would love your thoughts on the architecture,

@JackYansongLi JackYansongLi assigned da-liii and wumoin and unassigned da-liii Mar 4, 2026
/**
* @brief Serialize a path to a JSON-compatible string.
*
* Uses dot-separated integers, e.g. "0.1.3".
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use json array of integers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants