Skip to content

How to dump json with single quote. #402

Discussion options

You must be logged in to vote

You'd have to modify include/jsonencoder.hpp to achieve that, making changes in two classes: basic_json_encoder and basic_compact_json_encoder.

In the visit_key function, remove the two occurrences of sink_.push_back('\"');

And in the visit_string function, change the two occurrences of sink_.push_back('\"') to sink_.push_back('\'')

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@kapilpipaliya
Comment options

Answer selected by kapilpipaliya
Comment options

You must be logged in to vote
2 replies
@danielaparker
Comment options

@kapilpipaliya
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants