DEKI/ENGINE 문서
deki-json 0.19.0
Deki 패키지 레퍼런스
deki-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). 속성 이름은 씬 파일에서 쓰는 키입니다. 이름을 바꿔도 별칭이 유지됩니다(호환성).