나는 다음과 같은 것을 얻고 싶다.어떻게하면 자바 스크립트 개체에서 개체 이름을 "제거"할 수 있습니까?
{
"de": {
"errors.de.i18n.js": {
"errors": {
"addcreditcard": "Wir konnten diese Karte nicht verifizieren. Bitte überprüfe deine Angaben und versuche es noch einmal."
}
}
}
}
내가이 사건 errors.de.i18n.js에, 그 JSON의 두 번째 요소를 삭제하고이 같은 JSON 얻을 것 :
{
"de": {
"errors": {
"addcreditcard": "Wir konnten diese Karte nicht verifizieren. Bitte überprüfe deine Angaben und versuche es noch einmal."
}
}
}
감사를이 같은 JSON에서 시작 모두가
코드를 작성하고 공유해야합니다. –
원하는 것은 분명하지 않습니다. 더 자세히 설명해주세요. – Veverke
또한 유효한 JSON 문자열이나 유효한 JS 객체가 아닙니다. – somethinghere