Paste JSON to generate interfaces or types. Nested objects are split into separate named types
Yes, but they describe only what a single JSON sample shows. Optional keys and fields that can hold more than one type cannot be inferred from one sample. For API responses, paste several samples and compare the results.
By default the type is null. Turn on the optional switch to mark the key with ? as well, which is closer to reality when the API sometimes omits the field.
Every element is inspected. If all elements share a type the result is T[]; if they differ it becomes (A | B)[]. An empty array gives unknown[] because there is nothing to infer from.
No. Parsing and generation run entirely in your browser. Nothing is uploaded or stored.