Translate "JSON methods, toJSON" article to Portuguese by diogoosz · Pull Request #475 · javascript-tutorial/pt.javascript.info
Repository navigation
Translate "JSON methods, toJSON" article to Portuguese - #475
Merged
gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-json-methods Nov 21, 2026
Merged
Translate "JSON methods, toJSON" article to Portuguese #475 gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-json-methods
Conversation
diogoosz commented Nov 8, 2026
Copy link Copy Markdown
Contributor
Tradução do artigo "JSON methods, toJSON" para o português, incluindo os dois exercícios.
Conforme comentado na #1 .
Translate "JSON methods, toJSON" article to Portuguese
ee82cce
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>gabifs reviewed Nov 12, 2026
View reviewed changes
Comment thread 1-js/05-data-types/12-json/2-serialize-event-circular/task.md
Outdated
| --- | ||
|
|
||
| # Exclude backreferences | ||
| # Excluir referências cíclicas |
View reviewed changes
Comment thread 1-js/05-data-types/12-json/1-serialize-object/task.md
Outdated
| --- | ||
|
|
||
| # Turn the object into JSON and back | ||
| # Transforme o objeto em JSON e de volta |
View reviewed changes
Comment thread 1-js/05-data-types/12-json/article.md
Outdated
| *!*name*/!*: "John", // erro: nome da propriedade sem aspas | ||
| "surname": *!*'Smith'*/!*, // erro: aspas simples no valor (devem ser duplas ) | ||
| *!*'isAdmin'*/!*: false // erro: aspas simples na chave (devem ser duplas ) | ||
| "birthday": *!*new Date(2000, 2, 3)*/!*, // erro: não é permitido usar "new" , apenas valores soltos |
View reviewed changes
Comment thread 1-js/05-data-types/12-json/article.md
Outdated
| O valor de `meetup.date` é uma string, não um objeto `Date` . Como o `JSON.parse` saberia que deveria transformar essa string em um `Date`? | ||
|
|
||
| Let's pass to `JSON.parse` the reviving function as the second argument, that returns all values "as is ", but `date` will become a `Date`: | ||
| Vamos passar para o `JSON.parse` a função `reviver` como segundo argumento, que retorna todos os valores "como estão ", mas `date` se tornará um `Date`: |
View reviewed changes
Comment thread 1-js/05-data-types/12-json/2-serialize-event-circular/solution.md
| @@ -1,4 +1,3 @@ | ||
|
|
||
| ```js run |
Apply review feedback from @gabifs
7ec0b1a
- Fix terminology mismatch: title said "referências cíclicas" while the body uses "referências circulares" throughout - Fix incomplete title: "e de volta" (back to what?) -> "e de volta para objeto" - "valores soltos" doesn't convey "bare values" (literal values, no expressions) -> "valores literais" - "a função `reviver`" implies a function literally named `reviver`, but the example uses an anonymous function -> "a função de restauração (*reviver*)" - Revert whitespace-only changes (leading/trailing blank lines) in 2-serialize-event-circular/solution.md that aren't part of the translation and only add noise against upstream Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
diogoosz commented Nov 21, 2026
Copy link Copy Markdown
Contributor
Author
|
Obrigado, @gabifs ! Apliquei tudo: "referências cíclicas"→"referências circulares" (bate com o corpo do texto), completei o título "e de volta"→"e de volta para objeto", "valores soltos"→"valores literais", "a função |
3586af4
into
javascript-tutorial : master
Nov 21, 2026
1 check passed
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment