Skip to content

Can I use the “glaze” library without using “struct”? #1033

Answered by stephenberry
meftunca asked this question in Q&A
Discussion options

You must be logged in to vote

Certainly, you can use it with the standard template library or similar containers, or you can write custom serialization, or you can define custom interfaces using glz::custom for your class member functions (see README).

Or, if you need completely generic JSON where you know nothing about the data being read, you can use json_t

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@stephenberry
Comment options

@meftunca
Comment options

@meftunca
Comment options

@stephenberry
Comment options

@stephenberry
Comment options

Answer selected by meftunca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants