jsonToGo

try to take over the world!

लेखक
378978764
दैनिक इंस्टॉल
0
एकूण इंस्टॉल
3
रेटिंग
0 0 0
आवृत्ती
0.1
बनवली
2020-05-05
अपडेट केली
2020-05-05
आकार
10.5 KB
License
नाही
यांवर लागू होते:
सर्व संकेतस्थळे

json2type

Convert json to golang, typescript, python3 type declaration.

Usage

1、Install tampermonkey. 2、Open browser console. 3、In the console, following commands are supported:

json text to golang type declaration

input:

document.jsonToGo('{"name":"user","age":18}')

output:

type AutoGenerated struct {
    Name string `json:"name"`
    Age int `json:"age"`
}

json text to typescript type declaration

input:

document.jsonToTs('{"name":"user","age":18}')

output:

{
  name: string,
  age: number
}