All tools

FEA JSON

Converter

Paste a response, get the model. It infers nested shapes, merges array samples so an optional field is marked optional, recognises ISO dates, UUIDs and emails, and emits idiomatic source for each target — not a stringly-typed blob.

Runs entirely in your browserjson-to-class-converter

The published extension's converter core, imported as-is. It runs with no DOM access by design, which is exactly why it could move to a page unchanged.


JSON

Single quotes, unquoted keys, trailing commas and comments are all accepted.

Options

Output

// Generated from JSON by JSON to Class Converter.

export interface Root {
  id: string;
  name: string;
  email: string;
  createdAt: Date;
  active: boolean;
  score: number;
  tags: string[];
  projects: Project[];
  profile: Profile;
}

export interface Profile {
  location: string;
  remote: boolean;
  since: Date;
}

export interface Project {
  slug: string;
  stars: number;
  archived: boolean;
  license?: string;
}