目录

MoonSerde

MoonSerde is a lightweight data serialization and deserialization tool for MoonBit.

It provides a unified abstraction for converting MoonBit data structures to and from format-independent representations (Value). Currently, it includes a JSON stringifier.

Usage

let i = 42
let val_i = Serialize::to_value(i)
let json_str = to_json(val_i)
println(json_str) // "42"

let map = Map::new()
map.set("key", "value")
let val_map = Serialize::to_value(map)
println(to_json(val_map)) // {"key":"value"}

Features

  • Unified Value enum.
  • Serialize and Deserialize traits for builtin Moonbit types.
  • Lightweight JSON stringifier.
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号