---
title: "Discussion on \"Creating a Typescript Class from a JSON file\" | Hashnode"
description: "Discussion on \"Creating a Typescript Class from a JSON file\". When working with NextJS and Typescript, I often find myself creating classes to represent data structures. In the course of doing so, I often need to create the class from a REST API response that is a JSON object.\nTo expedite this crucial task, I t..."
url: "https://hashnode.com/posts/creating-a-typescript-class-from-a-json-file/6583caadfe25ec7d339b42f7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating a Typescript Class from a JSON file](https://tgrall.hashnode.dev/creating-a-typescript-class-from-a-json-file?utm_source=hashnode&utm_medium=feed)

When working with NextJS and Typescript, I often find myself creating classes to represent data structures. In the course of doing so, I often need to create the class from a REST API response that is a JSON object. To expedite this crucial task, I t...

Dec 18, 2023 · 1 min read · tgrall.hashnode.dev  
Read the article

## Written by

[Tug Grall](https://hashnode.com/@tgrall)

@tgrall

  
[View profile](https://hashnode.com/@tgrall)

Passionate developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
