JSON Lens

Turn JSON into a table anyone can use.

Source

4 root items

Rows

4

Columns

9

Keys

39

Depth

3

type Root = Root[];

interface Root {
  id: number;
  lastLogin: string | null;
  plan: string;
  seats: number;
  status: string;
  tags: string[] | unknown[];
  user: RootUser | RootUser2 | RootUser3 | RootUser4;
}

interface RootUser4 {
  city: string;
  name: string;
}

interface RootUser3 {
  city: string;
  email: string;
  name: string;
}

interface RootUser2 {
  city: string;
  email: string;
  name: string;
}

interface RootUser {
  city: string;
  email: string;
  name: string;
}
TypeScript
Generate interfaces and type aliases from the current JSON shape.