docs/Writerside/topics/parsers.md

Tue, 16 Dec 2025 21:33:58 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 16 Dec 2025 21:33:58 +0100
changeset 1617
d4385f35f8b0
parent 1424
563033aa998c
permissions
-rw-r--r--

add tests for freeing memory with a reallocation of size zero

# Parsers

UCX offers parsers for two common formats: key/value [properties](properties.h.md) and [JSON](json.h.md).

Both parser APIs are implemented in a memory-efficient way.
Depending on the use case, the properties parser can avoid memory allocations completely, 
and the JSON parser minimizes allocations as good as possible.
Due to the nature of JSON, avoiding allocations altogether is, of course, not possible when operating on read-only memory.

mercurial