How can we map data from JSON to typescript object efficiently?

This page summarizes the projects mentioned and recommended in the original post on /r/reactjs

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • zod

    TypeScript-first schema validation with static type inference

  • I think you're looking for a json schema validator like Ajv or Zod.

  • ajv

    The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)

  • I think you're looking for a json schema validator like Ajv or Zod.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • Paste JSON as Code • quicktype

    Xcode extension to paste JSON as Swift, Objective-C, and more

  • May be quicktype.io?

  • ts-pattern-decorators

    Software design patterns implemented with Typescript decorators

  • Here is a TS decorator that can do it for you for nested objects https://github.com/thesmitchuation/ts-pattern-decorators/blob/main/packages/framework/src/Decorators/JsonBuilder/JsonBuilder.ts

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Where DRY Applies

    3 projects | news.ycombinator.com | 3 Nov 2023
  • Has anybody used Typia library?

    3 projects | /r/typescript | 27 Jun 2023
  • Fastify: Support for Auto Type Inference (similar to TRPC)

    6 projects | /r/typescript | 16 Feb 2023
  • Typescript Runtime Validators and DX, a type-checking performance analysis of zod/superstruct/yup/typebox

    6 projects | dev.to | 12 Feb 2023
  • TypeScript-JSON is 10 ~ 1,000x times faster than ZOD and IO-TS

    4 projects | dev.to | 8 Oct 2022