fetch('https://jsonplaceholder.typicode.com/users') .then(response => response.json()) // Cuando acabes lo que te he pedido ejecuta esto .then(json => console.log(json)) // Cuando acabes de convertirlo entra aquí .catch(); let usuario = ` { "id": 1, "name": "Ana Pi", "username": "Bret", "email": "Sincere@april.biz", "address": { "street": "Kulas Light", "suite": "Apt. 556", "city": "Gwenborough", "zipcode": "92998-3874", "geo": { "lat": "-37.3159", "lng": "81.1496" } }, "phone": "1-770-736-8031 x56442", "website": "hildegard.org", "company": { "name": "Romaguera-Crona", "catchPhrase": "Multi-layered client-server neural-net", "bs": "harness real-time e-markets" } }`; fetch('https://jsonplaceholder.typicode.com/users', { method: 'POST', headers: { 'Content-Type': 'application/json;charset=utf-8' }, body: usuario }) .then(response => response.json()) // Cuando acabes lo que te he pedido ejecuta esto .then(json => console.log(json)) // Cuando acabes de convertirlo entra aquí .catch(); console.log("fetch1"); let response = await fetch('https://jsonplaceholder.typicode.com/users'); if (response.ok) { let datos = await response.text(); console.log(datos); } else { console.log(response.status); } console.log("fetch2");