Struggling to get JSON response data into usable struct

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

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • jsend

    JSend is a specification for a simple, no-frills, JSON based format for application-level communication.

  • Hi, I'm trying to make a call to a service I created which returns a JSON response in the JSend format, however I'm really struggling to marshal the response into a normal struct. The payload always seems to be marshaled into a map rather than properly into the struct fields.

  • mapstructure

    Go library for decoding generic map values into native Go structures and vice versa.

  • I've tried using mapstructure to then marshal the map fields into a struct which mostly works (it struggles with times and custom time types which requires a workaround for each case), but this doesn't feel very idiomatic and requires two passes at marshaling.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
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

  • Question about Unmarshalling

    3 projects | /r/golang | 19 Jul 2022
  • map[string]interface{} decoder

    4 projects | /r/golang | 30 Oct 2021
  • Обережно кодогенерація

    3 projects | dev.to | 21 Sep 2020
  • Orjson: Fast, correct Python JSON library

    1 project | news.ycombinator.com | 28 May 2024
  • GitHub Actions e a Magia dos Triggers: Automatizando Tarefas com C#

    3 projects | dev.to | 8 May 2024