Ad hoc JSON parsing

This page summarizes the projects mentioned and recommended in the original post on /r/golang

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. fastjson

    Fast JSON parser and validator for Go. No custom structs, no code generation, no reflection (by valyala)

    In Go if I need to extract just a few fields from a large JSON document it's hard to beat https://github.com/valyala/fastjson

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. oapi-codegen

    Generate Go client and server boilerplate from OpenAPI 3 specifications

    The service you're using has a swagger so you should try to create proper models in the first place. There are go code generators such as oapi-codegen. This style of programming is only good for throw-away code, python works well for that, if it's all you need, well, maybe stick to python in the first place. Yet even in python it's not considered production-ready good practice, proper code should use type-safe bindings such as with pydantic

  4. GJSON

    Get JSON values quickly - JSON parser for Go

  5. JSON-to-Go

    Translates JSON into a Go type in your browser instantly (original)

    Swagger is mentioned; see also the very useful and often used https://mholt.github.io/json-to-go/ .

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Any way to convert unknown/dynamic json to generic object structure

    3 projects | /r/golang | 2 Mar 2023
  • Is there a way to parse unstructured data?

    6 projects | /r/golang | 27 Nov 2022
  • Decoding JSON sum types in Go without panicking

    5 projects | news.ycombinator.com | 15 Mar 2025
  • Gjson: Get JSON values quickly – JSON parser for Go

    1 project | news.ycombinator.com | 29 Sep 2024
  • Object-oriented JSON in Go

    2 projects | /r/golang | 12 Apr 2023

Did you know that Go is
the 4th most popular programming language
based on number of references?