Elements of std::Array<Unsigned char> stored with ASCII values in json #3962
Unanswered
kamlesh-sharma1987
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a requirement to store std::array of type unsigned char and char to be stored in json format.
I observed Both of these are getting stored with ascii code.
for single char, i can convert it to string and store in json as it is, without conversion to ascii code.
for std::array <char, size> also, i can convert it to string and store in json as it is, without conversion to ascii code.
but for std::array, i could not do that. is these any workaround to store unsigned char values as it is in json format.
Please find the sample program below:
Output:
Beta Was this translation helpful? Give feedback.
All reactions