What's the best way to unmarshall this nested JSON?

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • spacetraders_go

    Go code to interact with the Space Traders API

  • See code at https://github.com/djotaku/spacetraders_go/blob/b873bdf5876ed009cad71b717a65df6893a665b7/spacetradersapi/api.go

  • jsonparser

    One of the fastest alternative JSON parser for Go that does not require schema

  • Use this to extract the data value, and handle/unmarshal it accordingly.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • fastjson

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

  • I’ve used fastjson when unmarshalling to Structs is inconvenient. https://github.com/valyala/fastjson

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