Hacker GitHub

← All repos

tidwall/gjson

View on GitHub ↗ ★ 15,557 Go

Get JSON values quickly - JSON parser for Go

15 mentions on Hacker News by 12 people: 4 stories, 11 comments · first 2016-08-11 · latest 2025-07-21

Mentions per year 15 mentions · busiest year 2023 (4)
20082026
  1. …purpose built for real-time spatial locations: https://tile38.com/ - go package for reading JSON: https://github.com/tidwall/gjson
  2. …so to speed up determining the object type you can extract the type field e.g. by using gjson ( https://github.com/tidwall/gjson ). It can be easily 10x faster for this kind of scenario
    comment by nasretdinov · 2025-03-16 · in Decoding JSON sum types in Go without panicking
  3. …typing, it seems to "just work" afaict. I also like msgspec for dataclass like behavior [2]. --- 1: https://github.com/tidwall/gjson 2: https://jcristharif.com/msgspec/
    comment by emmanueloga_ · 2024-10-09 · in Don't let dicts spoil your code
  4. …most web servers end up doing sooner or later) is GJSON [2]. -- 1: https://github.com/a-h/templ 2: https://github.com/tidwall/gjson
    comment by emmanueloga_ · 2024-09-29 · in Some Go web dev notes
  5. …5: https://github.com/fxamacker/cbor -- 6: https://github.com/valyala/fasthttp#faq -- 7: https://github.com/tidwall/gjson 8: https://github.com/tidwall/sjson
    comment by emmanueloga_ · 2023-12-04 · in Gobs of data (2011)
  6. …`@sort` modifier via `gjson.AddModifier` and have a custom jj version supporting sorting. [0]: https://github.com/tidwall/gjson/blob/master/SYNTAX.md [1]: https://github.com/tidwall/gjson/blob/master/SYNTAX.md#modif...
    comment by TymekDev · 2023-05-29 · in JJ: JSON Stream Editor
  7. …go module, and I've used it in a few projects where I needed faster parsing than encoding/json: https://github.com/tidwall/gjson
    comment by cristoperb · 2023-05-26 · in JJ: JSON Stream Editor
  8. one way could be you peek method using sth like https://github.com/tidwall/gjson
  9. If you do a lot of JSON parsing for unknown or large structs, you can use gjson: https://github.com/tidwall/gjson
  10. If only parts of a JSON needs to be accessed I can recommend https://github.com/tidwall/gjson .
    comment by PhilippGille · 2020-05-17 · in Representing JSON Structures in Go
  11. …pain. I've been using these packages with some success: https://github.com/tidwall/sjson https://github.com/tidwall/gjson Not knocking this pkg, just thought I'd share xD