create new Dto neestjs code example Example: object json parse nestjs var objJson1 = JSON.parse(JSON.stringify(objNotJson1));