Davis3D: 所有产品五折优惠

Struct 2 Json

AfternoonTea - 代码插件 - 2022/05/13

Convert User Defined Struct to and from Json string

  • 支持的平台
  • 支持的引擎版本
    4.27, 5.0
  • 下载类型
    引擎插件
    此产品包含一款代码插件,含有预编译的二进制文件以及与虚幻引擎集成的所有源代码,能够安装到您选择的引擎版本中,并根据每个项目的需求启动。
  1. This Plugin makes it easy to Convert User Defined Struct to Json string.
  2. This Plugin makes it easy Convert Json string to User Defined Struct.
  3. Empty values of struct will be omitted, make the Json string small
  4. Struct Nesting is supported.
  5. The converted Json fields will be the same as the struct and keep the case


Any suggestions and bugs can be made here: https://github.com/DAN-AND-DNA/UE_EasyStruct2Json(updated 2022/05/25)


Changelog

2022/5/19 version 1.1.0:

  1. Added bOmitEmpty to the Struct2Json to enable ignore empty struct values
  2. bugfix: Struct2Json failed to convert enum values

2022/5/25 version 1.1.2:

  1. bugfix: Modify the display name of the return value to "Ok"


Doc: https://docs.google.com/document/d/1Bqf_kjC484IPwsgcWBnXuXMCRY5AJPzvM0mCJBUGJxc/edit?usp=sharing

Demos: https://github.com/DAN-AND-DNA/UE_EasyStruct2Json

技术细节

Features:

  •  Convert User Defined Struct to Json string
  •  Convert Json string to User Defined Struct
  •  The converted Json fields will be the same as the struct and keep the case
  • Empty values of struct are omitted
  • Struct Nesting is supported

Code Modules:

  •   EasyStruct2Json (Runtime) 


Number of Blueprints: 0

Number of C++ Classes: 2

Network Replicated: No

Supported Development Platforms: Windows,MacOS

Supported Target Build Platforms: Windows,Mac,IOS,Android

Documentation: https://docs.google.com/document/d/1Bqf_kjC484IPwsgcWBnXuXMCRY5AJPzvM0mCJBUGJxc/edit?usp=sharing

Example Project: https://github.com/DAN-AND-DNA/UE_EasyStruct2Json