sheredom / json.h

🗄️ single header json parser for C and C++
The Unlicense
698 stars 77 forks source link

Convert a json object into json string #100

Closed yashcfg closed 1 year ago

yashcfg commented 1 year ago

I am not sure if it goes out of scope for this library but I have a use case where I want to parse an object and return value (object type) of a key.

eg. -

if json string is - "{\"a\":11,\"b\":{\"c\":22,\"d\":\"1234\"}}"

then I want to return "{\"c\":22,\"d\":\"1234\"}"

Let me know if it is possible. Thanks

sheredom commented 1 year ago

It is possible yup.

yashcfg commented 1 year ago

@sheredom can you share example code?