Para que o nome Maria Bueno seja exibido no elemento da primeira linha (tag h1), o trecho tracejado deve ser substituído por:","text":"Considere o trecho abaixo.Para que o nome Maria Bueno seja exibido no elemento da primeira linha (tag h1), o trecho tracejado deve ser substituído por:","answerCount":5,"datePublished":"2022-01-01T00:00:00-03:00","author":{"@type":"Organization","name":"FGV","url":"https://questionei.com"},"suggestedAnswer":[{"@type":"Answer","text":"let xpto = '{\"alunos\":[' + '{\"nome\":\"Edson\",\"sobreNome\":\"Arantes\" },' + '{\"nome\":\"Maria\",\"sobreNome\":\"Bueno\" }]}';","position":1,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2022-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941201875130/#alternativa-0","author":{"url":"https://questionei.com","@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"let '{\"xpto\":[' + '{\"nome\":\"Edson\",\"sobreNome\":\"Arantes\" },' + '{\"nome\":\"Maria\",\"sobreNome\":\"Bueno\" }]}';","position":2,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2022-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941201875130/#alternativa-1","author":{"url":"https://questionei.com","@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"let '{\"alunos\":[' + '{\"nome\":\"Maria\",\"sobreNome\":\"Bueno\" },' + '{\"nome\":\"Edson\",\"sobreNome\":\"Arantes\" }]}';","position":3,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2022-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941201875130/#alternativa-2","author":{"url":"https://questionei.com","@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"let xpto = alunos '{[' + '{nome:\"Edson\",sobreNome:\"Arantes\" },' + '{nome:\"Maria\",sobreNome:\"Bueno\" }]}';","position":4,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2022-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941201875130/#alternativa-3","author":{"url":"https://questionei.com","@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"let alunos = '{\"xpto\":[' + '{\"nome\":\"Edson\",\"sobreNome\":\"Arantes\" },' + '{\"nome\":\"Maria\",\"sobreNome\":\"Bueno\" }]}';","position":5,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2022-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941201875130/#alternativa-4","author":{"url":"https://questionei.com","@type":"Organization","name":"FGV"}}]}}
Considere o trecho abaixo.<h1 id="teste"></h1><script>-----const x = JSON.parse(xpto); document.getElementById("teste")....