from_cbor chokes on CBOR tag #4195
Unanswered
andrewshaf
asked this question in
Q&A
Replies: 2 comments
-
Can you provide a (hopefully small) example input? |
Beta Was this translation helpful? Give feedback.
0 replies
-
D901F4D901F5A100636F7061
CBOR Playground (nemo157.com)<https://cbor.nemo157.com/#type=hex&value=D901F4D901F5A100636F7061%0A>
From: Niels Lohmann ***@***.***>
Sent: Tuesday, October 31, 2023 12:06 PM
To: nlohmann/json ***@***.***>
Cc: Andrew Shafranov ***@***.***>; Author ***@***.***>
Subject: Re: [nlohmann/json] from_cbor chokes on CBOR tag (Discussion #4195)
Can you provide a (hopefully small) example input?
-
Reply to this email directly, view it on GitHub<#4195 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BAB27M4QN4FRCRD7DKBSXQDYCFD3BAVCNFSM6AAAAAA6W4VUVWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMZYG4ZDK>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
auto j = ordered_json::from_cbor(is, true, true, json::cbor_tag_handler_t::store);
instead of storing tagged values as binary container with subtype, it throws the exception 113 (a string was expected as map key, but not found).
Is there a way to work around?
TIA!
Beta Was this translation helpful? Give feedback.
All reactions