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)。プロパティ名はシーンファイルで使われるキーです。名前を変えても別名が残ります (互換性)。