A simple application to convert JSON data to go struct.
Example:
A sample JSON input to the application
{
"name": "Barksalot",
"species": "Dog",
"age": 5,
"photo": "https://learnwebcode.github.io/json-example/images/dog-1.jpg"
}
gets converted to the following struct.
type auto struct {
Name string `json:"name"`
Species string `json:"species"`
Age int `json:"age"`
Photo string `json:"photo"`
}
./jsonToStruct <file1.json> <file2.json> ..
cd jsonToStruct
make exe
- Golang 1.11
- Write Unit Tests
- Add and test with more JSON examples