devtui jsonstruct

Convert JSON to Go struct

Synopsis

Convert JSON input into a Go struct definition.

Input can be a string argument or piped from stdin.

devtui jsonstruct [string or file] [flags]

Examples

# Convert JSON from stdin
devtui jsonstruct < data.json
cat data.json | devtui jsonstruct
# Convert JSON string argument
devtui jsonstruct '{"name":"Alice","age":30}'
# Output to file
devtui jsonstruct < input.json > struct.go

Options

  -h, --help   help for jsonstruct

This site uses Just the Docs, a documentation theme for Jekyll.