Struct 2 Json

AfternoonTea - Code Plugins - May 13, 2022

Convert User Defined Struct to and from Json string

  • Supported Platforms
  • Supported Engine Versions
    4.27, 5.0 - 5.1
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.
  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"

2022/9/15 version 1.1.3:

  1. bugfix: Failed to parse values of enum type

2022/9/21 version 1.1.4:

  1. bugfix: Case insensitive




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

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

Technical Details

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