Action | From | To |
---|---|---|
JSON to Golang struct |
{
"one": "two",
"second": [
"uno",
"dos"
],
"third": {
"bir": 1,
"eki": "second",
"ush": true
}
} |
type Root struct {
One string `json:"one"`
Second []string `json:"second"`
Third Third `json:"third"`
}
type Third struct {
Bir int `json:"bir"`
Eki string `json:"eki"`
Ush bool `json:"ush"`
} |
JSON Beautify |
{
"one":"two","second":[
"uno", "dos"
]
} |
{
"one": "two",
"second": [
"uno",
"dos"
]
} |
JSON Minify |
{
"one": "two",
"second": [
"uno",
"dos"
]
} |
{"one":"two","second":["uno","dos"]} |
base64 to Text |
|
|
ProtoBuff to TypeScript |
|
enum Status {
ACTIVE,
INACTIVE,
SUSPENDED,
}
interface Person {
name: string;
age: number;
status: Status;
hobbies: string[];
attributes: Map<string, string>;
}
interface Organization {
name: string;
leader: Person;
members: Person[];
departments: Map<string, string>;
isPublic: boolean;
} |
- json to golang
{"one":[[{"two":"second"}]]}
return0 0 json:"0"
- copy/paste buttons right top text area
- syntax highlight