C++ serialization library

Problems building or running the engine, queries about how to use features etc.
slapin
Bronze Sponsor
Bronze Sponsor
Posts: 339
Joined: Fri May 23, 2025 5:04 pm
x 24

C++ serialization library

Post by slapin »

Hi, all!
Could anybody help me find a solution for serializing/deserializing structured data:

  1. I need to load data at time when terrain chunk loads. The data contain coordinates and types of spawned entities and optional parameters. The formats supported are string, float and integer. The parsing should not add too much overhead. The numbers of items is from 100 to 5000 per chunk.
  2. I need to store these data from editor and see the result more or less immediately, so that should be simple enough.

Currently I use code to create Ogre's ini format cfg files, but these are not symmetric as it is easy to read, but hard to create :(

User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 544
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 200

Re: C++ serialization library

Post by sercero »

If you search for it in the forum there are plenty of discussions about it

slapin
Bronze Sponsor
Bronze Sponsor
Posts: 339
Joined: Fri May 23, 2025 5:04 pm
x 24

Re: C++ serialization library

Post by slapin »

I ended up using nlohmann/json. Not super effective but good for now.