DEKI/ENGINE 文档
deki-json 0.19.0
Deki 包参考
deki-json

为运行时需要 JSON 的包提供 JSON 解析。嵌入式上封装 ESP-IDF 的 cJSON;桌面上使用等效实现。

仓库:github.com/dekiengine/deki-json · 最新版本:0.19.0 · 需要引擎 0.19.0 或更高版本

使用 DekiEditor --packages-add deki-json <project> 或通过包管理器安装。引擎自身的组件和 C++ API 见 Deki 文档。

在编辑器中显示为 **JSON**。

这个包是供引擎调用的驱动或库。详情见其 README。

更新日志

更新日志为英文。

0.19.0

Changed

  • minEngine 0.19.0: built against engine 0.19.0, whose component metadata records the package each class is in. A build of this package from before does not load and is rebuilt.

0.18.0

Changed

  • minEngine 0.18.0. Reflection ABI 21: the package must be rebuilt.
  • Names follow the code style (deki-engine/docs/codestyle): types, functions and enum values are PascalCase, constants kPascalCase, members m_PascalCase, locals and parameters camelCase. The code is formatted with clang-format 22.
  • The functions the editor finds by name are PascalCase: DekiJsonRegisterComponents, DekiJsonGetAutoComponentCount, DekiJsonEnsureRegistered and the rest. Built against engine ABI 21; a build of this package from before does not load and is rebuilt.

Fixed

  • SetChild and PushBack given a borrowed view (from GetChild or GetAt) linked a node that still belonged to its own tree, so both roots freed it and the program crashed. The view is now copied, and its tree is left as it was.
  • Arrays and objects nested more than 32 deep no longer parse (cJSON's own limit was 1000). Each level takes stack, and a few hundred overflowed a device's 16 KB task stack: JSON from the network could crash the board. The limit is the same on every platform.

更早的版本:CHANGELOG.md


由包的反射数据生成(引擎 0.19.0)。属性名就是场景文件中使用的键。重命名后会保留别名(兼容性)。