FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Extra " when calling MessagePackSerializer.ToJson · Issue #1473 · MessagePack-CSharp/MessagePack-CSharp · GitHub

Extra " when calling MessagePackSerializer.ToJson #1473

Description

There is an extra " when calling MessagePackSerializer.ConvertToJson for extension code of 100 (typeless)

In MessagePackSerializer.Json.cs at line 435

writer.Write("{\"$type\":\"" + typeNameTokenBuilder.ToString() + "}");

There is an extra " if after type (when no data after type). This will breaks the JSON format. Should be:

writer.Write("{\"$type\":" + typeNameTokenBuilder.ToString() + "}");

Cheers
Tao

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL