Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add native json.Number support #364

Merged
merged 4 commits into from
Oct 1, 2024
Merged

Commits on Sep 28, 2024

  1. Add native json.Number support

    Allow encoding and decoding of `json.Number` values, either as struct members or as interface members.
    
    Numbers will be encoded as integer, if possible, otherwise float64 is used. To cover the zero values, write an empty string, but invalid values will return errors when encoded
    
    It is possible to encode as string with `//msgp:replace json.Number with:string`.
    
    Fixes tinylib#292
    klauspost committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    01ec106 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Configuration menu
    Copy the full SHA
    07a8540 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eaf6fc4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2762177 View commit details
    Browse the repository at this point in the history