# \[Free\]\[Open Source\] DataConfig - JSON and MsgPack Serializer for Unreal Engine

**URL:** <https://forums.unrealengine.com/t/free-open-source-dataconfig-json-and-msgpack-serializer-for-unreal-engine/499175>\
**Category:** C++\
**Tags:** serialization, unreal-engine, editor, json, Plugins, CPP\
**Created:** [February 17, 2022, 3:08pm UTC](https://forums.unrealengine.com/t/free-open-source-dataconfig-json-and-msgpack-serializer-for-unreal-engine/499175 "2022-02-17T15:08:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagttt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jagttt](https://forums.unrealengine.com/u/jagttt)\
**Post date:** [February 17, 2022, 3:08pm UTC](https://forums.unrealengine.com/t/free-open-source-dataconfig-json-and-msgpack-serializer-for-unreal-engine/499175/1 "2022-02-17T15:08:37Z")

</div>

Hi everyone!

I’ve been working on a serialization framework for Unreal Engine. Recently I’ve got a new release with roundtrip-able serializers and JSON/MsgPack support. See : [Introducing DataConfig 1.2](https://slowburn.dev/blog/dataconfig-1-2/).

- [Download the repo on Github](https://github.com/slowburn-dev/DataConfig)
- [Checkout DataConfig book](https://slowburn.dev/dataconfig/)

In short DataConfig is an open source C++ library implementing serialization framework that allows custom logic. A classic example is converting [`FColor` between a hex string`#RRGGBBAA`](https://slowburn.dev/dataconfig/Extra/FColor.html) for example:

```nohighlight
USTRUCT()
struct FDcExtraTestStructWithColor1
{
    GENERATED_BODY()

    UPROPERTY() FColor ColorField1;
    UPROPERTY() FColor ColorField2;
};

FString Str = TEXT(R"(
    {
        "ColorField1" : "#0000FFFF",
        "ColorField2" : "#FF0000FF",
    }
)");

```

DataConfig makes it trivia to implement the conversion logic and it works recursively.

Additionally we have more cool examples:

- [Base64 Blob](https://slowburn.dev/dataconfig/Extra/Base64)

- [AnyStruct](https://slowburn.dev/dataconfig/Extra/AnyStruct). We have `FDcAnyStruct` that can store a heap allocated struct of any type:

- [Dump UE struct and object in VS immediate window](https://slowburn.dev/dataconfig/Examples/DebugDump.html)

- [Load Gameplay Ability from a JSON file](https://slowburn.dev/dataconfig/Extra/GameplayAbility.html)

If you’re coming from Unity3D then DataConfig is basically FullSerializer or OdinSerializer implemented for UE 😉

If you’re a C++ programmer doing JSON read write in Unreal Engine you should give this a try. We implemented [new JSON parser and writer](https://slowburn.dev/dataconfig/Formats/JSON.html) with no external dependency. It supports relaxed JSON spec that allows `// line commnet`, `/* block comment*/` and trailing comma.

- [Download the repo on Github](https://github.com/slowburn-dev/DataConfig)
- [Checkout DataConfig book](https://slowburn.dev/dataconfig/)

We also have a separated plugin [DataConfig JSON Asset](https://www.unrealengine.com/marketplace/en-US/product/dataconfig-json-asset) on the market place.

It allows batch and auto reimport of JSON into DataAsset.

![DcJsonAsset Import](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/0/4b06c32046ece3625c9b304b02d48bb53192fec3.png)

We think it’s pretty cool and useful. Post your questions and feedback here 😄

---

<div class="post-metadata">

**Author:** ![jagttt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jagttt](https://forums.unrealengine.com/u/jagttt)\
**Post date:** [June 21, 2022, 4:00pm UTC](https://forums.unrealengine.com/t/free-open-source-dataconfig-json-and-msgpack-serializer-for-unreal-engine/499175/2 "2022-06-21T16:00:28Z")

</div>

Hi folks! We’ve just get 1.3 release out the door! It got full UE5 support and tons of bug fixes.

Checkout our the release notes: [DataConfig Core and JSON Asset 1.3 Release - slowburn.dev](https://slowburn.dev/blog/dataconfig-dcjsonasset-1-3/)

---

<div class="post-metadata">

**Author:** ![jagttt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jagttt](https://forums.unrealengine.com/u/jagttt)\
**Post date:** [August 27, 2023, 3:40am UTC](https://forums.unrealengine.com/t/free-open-source-dataconfig-json-and-msgpack-serializer-for-unreal-engine/499175/3 "2023-08-27T03:40:24Z")

</div>

Hi folks, it’s been a long time and we’ve been working on getting DataConfig better during this period.

We just pushed 1.4.3 with some cool samples showing of DataConfig flexibilities:

```c++
// NDJSON
FString Str = TEXT(R"(

    { "Name" : "Foo", "Id" : 1, "Type" : "Alpha" }
    { "Name" : "Bar", "Id" : 2, "Type" : "Beta" }
    { "Name" : "Baz", "Id" : 3, "Type" : "Gamma" }

)");

UTEST_OK("Extra NDJSON", LoadNDJSON(*Str, Dest));

FString SavedStr;
UTEST_OK("Extra NDJSON", SaveNDJSON(Dest, SavedStr));

// root object/array
FString Str = TEXT(R"(

    "Name" : "Foo",
    "Id" : 253,
    "Type" : "Beta"

)");
// ...
FString Str = TEXT(R"(

    "Alpha",
    "Beta",
    "Gamma"

)");

```

Checkout the blogpost here:  
[https://slowburn.dev/blog/flexible-json-serialization-ue-dataconfig](https://slowburn.dev/blog/flexible-json-serialization-ue-dataconfig)

---

<div class="post-metadata">

**Author:** ![jagttt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jagttt](https://forums.unrealengine.com/u/jagttt)\
**Post date:** [April 10, 2024, 4:08pm UTC](https://forums.unrealengine.com/t/free-open-source-dataconfig-json-and-msgpack-serializer-for-unreal-engine/499175/4 "2024-04-10T16:08:34Z")

</div>

Greetings folks. Another year passed and we finally added blueprint nodes for loading/dumping JSON

 ![DataConfigEngineExtra-BlueprintNodes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/e/52e0b7fcae4d7b93eed7612fa2ee88f63aa65916.png)

Read about it here: [https://slowburn.dev/blog/dataconfig-1-5-and-1-6/](https://slowburn.dev/blog/dataconfig-1-5-and-1-6/)  
Grab the latest release here: [https://github.com/slowburn-dev/DataConfig/releases/tag/1.6.0](https://github.com/slowburn-dev/DataConfig/releases/tag/1.6.0)
