Skip to content

JSON Size Smaller Than MessagePack Go Implementation #362

@marcsantiago

Description

@marcsantiago

When pasting the JSON below into the official message pack site, it shows a significant decrease in size
https://msgpack.org/index.html

{"bar":"spam","foo":[{"spam":"ss","size":{"w":320,"h":480},"n":10,"c":1},{"spam":"ss","size":{"w":300,"h":250},"n":5,"c":1},{"spam":"ss","size":{"w":320,"h":50},"n":1,"c":1},{"spam":"v","size":{"w":-1,"h":-1},"n":20}],"l":10,"b":1}

However when using this package it always shows that the generated output is larger than it's JSON counter part. Any reason why?

Is the site applying compression as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions