Popularity
0.8
Declining
Activity
0.0
Stable
2
3
2

Description

Convert your json to go struct efficiently.

Programming language: Go
License: MIT License
Tags: Go Tools     Code Generation     Json     Golang     jsonToStruct    
Latest version: v1.0.0

jsonToStruct alternatives and similar packages

Based on the "JSON" category.
Alternatively, view jsonToStruct alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of jsonToStruct or a related project?

Add another 'JSON' Package

README

Godocs Go Report Card Open Source Helpers Release

jsonToStruct

Golang code generator for creating struct from json.

INSTALLATION

go get github.com/mayur-tolexo/j2s

Tags:

  • -ip=input.json [Input File (default "input.json")]
  • -op=bakery.go [Output File (default "output.go")]
  • -name=Bakery [Structure Name (default "User")]
  • -reuse=1 [if you want to reuse struct having same fields (default 0)]

Create Struct from console json.

Command Output
Screenshot 2019-11-16 at 12 31 41 AM Screenshot 2019-11-16 at 12 32 14 AM

Create struct from json input file.

Screenshot 2019-11-16 at 12 33 10 AM

Input Output
Screenshot 2019-11-16 at 12 32 37 AM Screenshot 2019-11-16 at 12 33 24 AM