PrivTab

JSON hadi TypeScript

JSON hadi TypeScript

Inafanya kazi ndani ya kivinjari chako · Hakuna kupakia

Zana hii na maelekezo kwenye ukurasa huu bado ni kwa Kiingereza kwa sasa. Inafanya kazi vilevile: kila kitu kinafanya kazi ndani ya kivinjari chako.

Generate TypeScript

  • Hakuna kinachoondoka kwenye kifaa chako
  • Hakuna kikomo cha ukubwa kutoka kwa seva
  • Hakuna kujisajili, hakuna alama maji
  • Bure

How to convert JSON to TypeScript

  1. Paste your JSON, or try the example.
  2. Choose interface or type, export and optional fields.
  3. Copy or download the TypeScript.

What you get

  • An interface for every object, named after its key.
  • Optional fields (name?: string) for fields missing from some array items.
  • Union types (string | null) where values differ.
  • Keys that aren't valid names (like "created-at") are quoted.

Maswali yanayoulizwa mara kwa mara

Is my JSON uploaded?

No. Everything happens in your browser, and the page is blocked from uploading anything.