Skip to content

How can I set a raw string as an arbitrary type? #4348

Answered by nlohmann
allanbbs asked this question in Q&A
Discussion options

You must be logged in to vote

I am not entirely sure what you want to accomplish, but you can set a string with

json x = "32";

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nlohmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants