nlohmann / json

JSON for Modern C++
https://json.nlohmann.me
MIT License
41.25k stars 6.57k forks source link

Wrong function name in documentation example #4334

Closed anderay closed 2 months ago

anderay commented 2 months ago

Description

Should be "from_json(...)" instead "to_json(...)"

Reproduction steps

Read the doc with understanding

Expected vs. actual results

Proper example

Minimal code example

No response

Error messages

No response

Compiler and operating system

N/A

Library version

N/A

Validation

nlohmann commented 2 months ago

Where exactly in the docs?

anderay commented 2 months ago

https://github.com/nlohmann/json/blob/199dea11b17c533721b26249e2dcaee6ca1d51d3/docs/mkdocs/docs/features/arbitrary_types.md?plain=1#L268