brave-browser
brave-browser copied to clipboard
Implement function in rust json lib to convert all u64 to strings
We want a function in components/json/rs/src/lib.rs
with the following signature:
pub fn convert_all_uint64_to_string(json: &str) -> String
It should be able to convert any u64 number in the json into a string, like this:
{"lamports": 18446744073709551615} -> {"lamports": "18446744073709551615"}
{"some": [{"deeply": {"nested": [{"path": 123}]}}]} -> {"some": [{"deeply": {"nested": [{"path": "123"}]}}]}