Skip to content

Commit

Permalink
Merge pull request #447 from MonkeybreadSoftware/patch-4
Browse files Browse the repository at this point in the history
Update json_encoder.hpp
  • Loading branch information
danielaparker authored Sep 22, 2023
2 parents 883dbd7 + d62a614 commit c45caa5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions include/jsoncons/json_encoder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,16 @@ namespace detail {
case semantic_tag::bigint:
write_bigint_value(sv);
break;
case semantic_tag::bigdec:
{
// output lossless number
if (options_.bigint_format() == bigint_chars_format::number)
{
write_bigint_value(sv);
break;
}
JSONCONS_FALLTHROUGH;
}
default:
{
sink_.push_back('\"');
Expand Down Expand Up @@ -1324,6 +1334,16 @@ namespace detail {
case semantic_tag::bigint:
write_bigint_value(sv);
break;
case semantic_tag::bigdec:
{
// output lossless number
if (options_.bigint_format() == bigint_chars_format::number)
{
write_bigint_value(sv);
break;
}
JSONCONS_FALLTHROUGH;
}
default:
{
sink_.push_back('\"');
Expand Down

0 comments on commit c45caa5

Please sign in to comment.