JSON-to-Go

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

Stats

Basic JSON-to-Go repo stats
16
3,077
1.9
16 days ago

mholt/json-to-go is an open source project licensed under MIT License which is an OSI approved license.

JSON-to-Go Alternatives

Similar projects and alternatives to JSON-to-Go

  • GitHub repo GJSON

    Get JSON values quickly - JSON parser for Go

  • GitHub repo ent

    An entity framework for Go

  • GitHub repo GoSwagger

    Swagger 2.0 implementation for go

  • GitHub repo wire

    Compile-time Dependency Injection for Go

  • GitHub repo goa

    Design-based APIs and microservices in Go

  • GitHub repo sqlc

    Generate type safe Go from SQL

  • GitHub repo xo

    Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server (by xo)

  • GitHub repo encore

    The Go backend framework with superpowers

  • GitHub repo gojsonschema

    An implementation of JSON Schema, draft v4 v6 & v7 - Go language

  • GitHub repo go-jira

    Go client library for Atlassian Jira

  • GitHub repo gowsdl

    WSDL2Go code generation as well as its SOAP proxy

  • GitHub repo typescriptify-golang-structs

    A Golang struct to TypeScript class/interface converter

  • GitHub repo sqlgen

    Go tool for generating sql scanners, sql statements and other helper functions

  • GitHub repo typex

    [TOOL, CLI] - Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations.

  • GitHub repo go2ts

    Online Golang Struct to TypeScript Interface Converter

  • GitHub repo jsonreflect

    JSON reflection for Go

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better JSON-to-Go alternative or higher similarity.

Posts

Posts where JSON-to-Go has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-05-07.
  • Online Golang Struct to TypeScript Interface Converter
    reddit.com/r/golang | 2021-05-07
    There's 2 other notable tools that do Go structs to TS interfaces, but they also did way too much extra stuff for our use case, plus they worked via Go generate and I didn't want to use something that way. I love the way the popular JSON to Go page works, and I wanted something similar.
  • Golang Data Connector Part 2
    dev.to | 2021-05-02
    To do this we'll need to convert the JSON into a struct. OK, so how do we do that? There are a couple of different ways but the easiest I've found is to use the site JSON to Go. This site converts a JSON object into what is a matching Golang struct.
  • i am able to get json data from open weather api... what to do next to just print the temperature of the city?
    reddit.com/r/golang | 2021-04-21
    Go won't let you be so dynamic with the raw data. You'll want to unmarshal that json into a struct that matches the shape of the data. Check out https://mholt.github.io/json-to-go/. And use json. Unmarshal.
  • How to unmarshal and this kind of json data?
    reddit.com/r/golang | 2021-04-13
    Or use https://mholt.github.io/json-to-go/
  • Code Generation
    reddit.com/r/golang | 2021-04-10
    Marshaling responses from web services. If we are optimizing for readability, we should have strongly typed structs to marshal in to. This leads to grunt work in defining the type struct that maps to the web service. The code generation solution is using a tool like https://mholt.github.io/json-to-go/ .
  • Help passing a nested JSON object to a REST API
    reddit.com/r/golang | 2021-04-08
  • Please tell me how are you working with JSON in go?
    reddit.com/r/golang | 2021-03-23
    also working with json and struct this tool is invaluable for working witgh large datasets: https://mholt.github.io/json-to-go/. it converts json into a structs that'll work in go and should help a lot.
    reddit.com/r/golang | 2021-03-23
    Paste your JSON into here to get a start on a struct https://mholt.github.io/json-to-go/
  • Cannot unmarshal string to struct
    reddit.com/r/golang | 2021-03-12
    If the string is a JSON string, you might try this: https://mholt.github.io/json-to-go/
  • Help: I'm learning to use golang to interact with an API and have an odd JSON
    reddit.com/r/golang | 2021-03-11
  • How to make complex json data with go struct?
    reddit.com/r/golang | 2021-03-06
    Try https://mholt.github.io/json-to-go/. It will change your life.
  • Golang jobs - Start Working Remotely
    reddit.com/r/golang | 2021-03-06
    E.g. https://mholt.github.io/json-to-go/
  • How to get api info with multiple values of the same name
    reddit.com/r/golang | 2021-02-25
    besides, I think you can get golang struct from raw json data with json-to-go
    reddit.com/r/golang | 2021-02-25
    Checkout json-to-go which will generate the structs for you.
  • Best programming language for API connections and parsing JSON
    You can also use https://mholt.github.io/json-to-go/ to generate your response types for you, just need to paste a json response in there (you might need to do this a couple of times as you will need to create nested types sounds like)