You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone I have been trying to figure out if there was a way for me to access the underlying "raw text" of a numeric value.
Let's say I have the following json:
Here I want to treat some_number as a "bunch of digits", meaning the node is still of numeric type but I don't want to rely on any parsing capabilities from this library. Would it be possible for me to get the underlying array of characters that is contained in the json file for a given numeric node?
In other words, I would like to do something like this
@nlohmann thank you for your reply, and sorry for not replying in a timely manner. Unfortunately I haven't tried, but I think I will git it a try when I get back to this issue. For now I decided I was fine with the current behavior.
If and when I do try it out I will make sure to update this thread.
Hey everyone I have been trying to figure out if there was a way for me to access the underlying "raw text" of a numeric value.
Let's say I have the following json:
Here I want to treat
some_number
as a "bunch of digits", meaning the node is still of numeric type but I don't want to rely on any parsing capabilities from this library. Would it be possible for me to get the underlying array of characters that is contained in the json file for a given numeric node?In other words, I would like to do something like this
Which would print:
Is this doable?
Thanks a lot!
The text was updated successfully, but these errors were encountered: