Main Site

DevMorph by Hasan Tech Lab

DevMorph by Hasan Tech Lab — JSON to Go Struct Converter

Generate Go structs with JSON field tags from JSON objects in your browser. DevMorph by Hasan Tech Lab keeps input client-side.

Input: JSON objects, including nested objects, arrays, strings, numbers, and booleans.

Output: Go structs with json tags; integer and decimal numbers use int and float64.

Example: {"name":"Ada","active":true} becomes a Go struct with Name string and Active bool fields.

Created by Hasan Tech Lab and Hasan Mahmud.

Input (Type, Paste, or Drop File)
0 chars
Output

Documentation / Reference & Examples

Developer workflows, explained

DevMorph is a browser-based collection of developer utilities by Hasan Tech Lab. Choose a tool, paste or type input (or drop a text file), then copy or download the result. Conversion and inspection run in your browser; the tools do not send your input to a DevMorph backend.

JSON to TypeScript

Paste a JSON object; DevMorph infers TypeScript interfaces for nested objects and arrays.

Example: {"name":"Ada","active":true} produces a RootObject interface with name: string and active: boolean.

JSON to Go

Generate Go structs with JSON field tags. Integer and decimal JSON numbers map to int and float64.

Example: {"name":"Ada","active":true} produces a struct with Name string and Active bool.

cURL to Fetch

Translate a cURL URL, method, headers, and data body into JavaScript Fetch code.

Example: curl -X GET "https://api.example.com/items" becomes a Fetch request using the GET method.

JWT Decoder

Decode a JWT's Base64URL header and payload as formatted JSON. This tool does not verify the signature.

Input: a three-part JWT. Output: readable header and claims; never treat decoding as token verification.

JSON Formatter

Validate JSON and switch between compact and indented output based on the input's formatting.

Example: {"items":[1,2]} is formatted as indented JSON; multiline input is compacted.

Cron Expression Checker

Check five-field cron expressions and show up to five upcoming local run times (minute, hour, day, month, weekday).

Example: */15 9-17 * * 1-5 checks quarter-hour runs during weekdays from 9:00 to 17:59.

Regex Tester

Test a JavaScript regular expression against newline-separated text and review matches and capture groups.

Input format: pattern, then ---, then test text. Example: /cat/i
---
matches “Cat”.

Regex Generator

Create a starter pattern from the built-in email, URL, UUID, IPv4, date, hex-color, or phone templates.

Example: enter email to generate an email-shaped regular expression.

Base64 Encoder & Decoder

Encode UTF-8 text to Base64, or decode Base64 by prefixing the input with decode:.

Example: Hello encodes to SGVsbG8=; decode: SGVsbG8= decodes to Hello.

Frequently asked questions

Does DevMorph send my input to a server?

No. Tool input is processed in your browser and is not sent to a DevMorph backend.