Json To Go Struct API
https://api.findutils.com/api/tools/json-to-go-struct/execute Returns Go struct definitions (as source text) generated from a JSON object. Field names become PascalCase, nested objects become their own structs (or inline structs), and json tags with optional omitempty are added.
Request body
application/json-
json
string required
A JSON object (text). The top-level value must be an object.
-
struct_name
string optional
Name of the top-level struct. Default: "Root". Default
"Root". -
add_json_tags
boolean optional
Add `json:"..."` struct tags. Default: true. Default
true. -
omit_empty
boolean optional
Append ",omitempty" to every json tag. Default: false. Default
false. -
inline_structs
boolean optional
Emit nested objects as inline anonymous structs instead of named types. Default: false. Default
false.
Example arguments
Verified{
"json": {
"user_name": "a",
"age": 3,
"address": {
"city": "x"
}
}
} More Data tools
- Api Docs Generator Return API documentation generated from a list of endpoints, as Markdown (with table of contents, request/response examples)…
- Bookmarks Html To Csv Convert a browser bookmarks.html export from Chrome, Firefox, Edge, Safari or any other browser that writes the Netscape bookmark format…
- Bookmarks Json To Html Convert a bookmarks JSON file into a Netscape bookmarks.html that Chrome, Firefox, Edge and Safari import.
- Csv Dedupe Remove duplicate rows from a CSV or TSV table.
- Csv Diff Compare two CSV or TSV tables by key column and list the rows that were added, removed or changed - a table diff, not a line diff, so rows…
- Csv To Bookmarks Html Convert a CSV of links into a Netscape bookmarks.html file that Chrome, Firefox, Edge and Safari import.