Convert json to golang, typescript, python3 type declaration.
- Install tampermonkey.
- Install this script on greasyfork.
- Open browser console.
- In the console, following commands are supported:
input:
document.jsonToGo('{"name":"user","age":18}')
output:
type AutoGenerated struct {
Name string `json:"name"`
Age int `json:"age"`
}
input:
document.jsonToTs('{"name":"user","age":18}')
output:
{
name: string,
age: number
}