Skip to content

[C++] JSON serialization #718

Closed
Closed

Description

@ksergey

Hello SBE devs!

SBE codec is not escapes characters reserved by JSON during serialization.
It produces invalid JSON in cases when symbols like " present in text fields.

Thanks

Activity

  1. mjpt777 commented on Sep 13, 2019

    @mjpt777
    Contributor

    This is not something we make use of. Feel free to send a PR to address it.

  2. rigtorp commented on Oct 4, 2019

    @rigtorp
    Contributor

    There is no builtin JSON serialization in the C++ codecs is there?

  3. ksergey commented on Oct 8, 2019

    @ksergey
    ContributorAuthor

    @rigtorp there is JSON-like serialization. Serialization code don't escape JSON control chars in strings.

  4. ksergey commented on Oct 8, 2019

    @ksergey
    ContributorAuthor

    I think better solution to have something like exists in rapidjson library:
    https://rapidjson.org/md_doc_sax.html#Reader

  5. mjpt777 commented on Oct 14, 2019

    @mjpt777
    Contributor

    I've pushed a change which will Json escape var data strings in UTF-8 or ASCII will is a subset and this is use for the pretty printing. Raw binary will be summarised as "x bytes of raw data".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions