open-source-parsers / jsoncpp

A C++ library for interacting with JSON.
Other
8.06k stars 2.63k forks source link

could u support hexadecimal parameters? #1540

Open dongdong-q opened 2 months ago

dongdong-q commented 2 months ago

Is your feature request related to a problem? Please describe. Sometimes I want to use hexadecimal format and it is better than decimal when I use json as configuration files

Describe the solution you'd like I hope we can support "0x***" as input inside asInt() APIs.

Describe alternatives you've considered currently I made changes locally, recognize hex format as string and read it successfully.