여긴 또 무엇인가

  • 홈
  • 태그

JSON 1

[Typescript] class to json

Typescript에서 class를 json 문자열로 바꾸는 방법에 대한 고민. 일단 평범?하게.. 별 문제없이 성공 class MyTest { first = 1; second = "It's my test!"; third: string[] = ["Hello", "World"]; } console.log(JSON.stringify(new MyTest()));​ 이렇게 하니까 무한루프를 탄다. class MyTest { first = 1; second = "It's my test!"; third: string[] = ["Hello", "World"]; toJSON(): string { return JSON.stringify(this); } } const o = new MyTest(); console.log(..

Javascript 2023.03.02
이전
1
다음
더보기
프로필사진

여긴 또 무엇인가

한 게으름뱅이 개발자의 내키는대로 쓰는 이야기들

  • 분류 전체보기
    • Java
    • PHP
    • Javascript
    • Python
    • SQL
    • Linux
    • Sublime Text
    • 개발자 일상
    • 정리

Tag

윈도, PKCS#5, docker, java, 프로그래밍, 파이썬, c#, RFC 2898, Mac, Eclipse, 개발, 이클립스, 설치, 윈도우, 웹, 자바, PBKDF1, derivation function, Web, System.Security.Cryptography.PasswordDeriveBytes,

Copyright © Kakao Corp. All rights reserved.

티스토리툴바