Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tidwall/gjson
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.10.2
Choose a base ref
...
head repository: tidwall/gjson
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.14.1
Choose a head ref
  • 19 commits
  • 4 files changed
  • 1 contributor

Commits on Oct 28, 2021

  1. Configuration menu
    Copy the full SHA
    7cadbb5 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2021

  1. Added Path and Paths for getting the original path of a Result

    This commit adds a two new functions of the Result type:
    
    - Result.Path:  Returns the original path of a `Result` that was
                    returned from a simple `Get` operation.
    - Result.Paths: Returns the original paths of a `Result` that was
                    returned from a `Get` operation with a query.
    
    See issue #206 for more details
    tidwall committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    2c9fd24 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. Added new static value character

    You can use the '!' character to define static json as a path
    component.
    
    For example,
    
      {name.last,"foo":!"bar"} => {name.last,"foo":"bar"}
    
    see #249
    tidwall committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    6b6af2a View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2021

  1. Fix modifier bug in multipath selector

    Closes #253
    tidwall committed Nov 25, 2021
    Configuration menu
    Copy the full SHA
    d3a1349 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2021

  1. Added JSON Literals

    tidwall committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    9eae1fa View commit details
    Browse the repository at this point in the history
  2. Add syntax badge

    tidwall authored Nov 30, 2021
    Configuration menu
    Copy the full SHA
    bd76212 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2021

  1. Set array index as key for ForEach

    See #248
    tidwall committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    db00337 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

  1. Fixed typo

    tidwall authored Dec 8, 2021
    Configuration menu
    Copy the full SHA
    65bbebb View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2021

  1. Update SYNTAX.md

    tidwall authored Dec 10, 2021
    Configuration menu
    Copy the full SHA
    ba95ef8 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2022

  1. Add tostr and fromstr modifiers

    For wrapping and unwrapping json strings
    tidwall committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    38071ea View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2022

  1. Update README.md

    Added an additional link to the SYNTAX doc. 
    
    #261
    tidwall authored Jan 14, 2022
    Configuration menu
    Copy the full SHA
    f47e17d View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2022

  1. Added group modifier

    The new "@group" modifier allows for grouping arrays of objects.
    
    For example, using the "@group" modifier on the following json...
    
      {"id":["123","456","789"],"val":[2,1]}
    
    will results in...
    
      [{"id":"123","val":2},{"id":"456","val":1},{"id":"789"}]
    tidwall committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    e4fc67c View commit details
    Browse the repository at this point in the history
  2. Added IsBool

    See #264
    tidwall committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    82f549e View commit details
    Browse the repository at this point in the history
  3. Update docs

    tidwall committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    05e9ee1 View commit details
    Browse the repository at this point in the history
  4. Update README.md

    tidwall authored Feb 2, 2022
    Configuration menu
    Copy the full SHA
    fce6fec View commit details
    Browse the repository at this point in the history
  5. Update README.md

    tidwall authored Feb 2, 2022
    Configuration menu
    Copy the full SHA
    1abd525 View commit details
    Browse the repository at this point in the history
  6. Update SYNTAX.md

    tidwall authored Feb 2, 2022
    Configuration menu
    Copy the full SHA
    7a94820 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2022

  1. Update comment

    tidwall committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    56c0a0a View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2022

  1. Remove encoding/json dependency

    The only purpose of using the built-in Go was to encode json
    strings that had unicode or needed to escaped.
    
    This commit adds the new function `AppendJSONString` which allows
    for appending strings as their json representation to a byte
    slice.
    
    It's about 2x faster than using json.Marshal.
    tidwall committed Apr 19, 2022
    1 Configuration menu
    Copy the full SHA
    c3bb2c3 View commit details
    Browse the repository at this point in the history
Loading