﻿<script type=”application/ld+json”>
{
	“headline”: “Titulo de la noticia”,
	“image”: [
        “https://ejemplo.com/mi-imagen-1.jpg”,
        “https://ejemplo.com/mi-imagen-2.jpg”,
        “https://ejemplo.com/mi-imagen-3.jpg”
    ],
	“datePublished”: “2020-06-29”,
	“author”: {
		“@type”: “Person”,
		“name”: “Santiago”
	},
	“publisher”: {
		“@type”: “Organization”,
		“name”: “Mi-Organizacion”,
		“logo”: {
			“@type”: “ImageObject”,
			“url”: “https://ejemplo.com/logo.jpg”
		}
	}
}
</script>

<script type=”application/ld+json”>
{
	“@context”: “https://scheema.org”,
	“@type”: “SoftwareApplication”,
	“name”: “Mi-app”,
	“aggregateRating”: {
		“@type”: “AggregateRating”,
		“ratingValue”: “4,6”
	},
	“offers”: {
		“@type”: “Offer”,
		“price”: “5,0”,
		“priceCurrenci”: USD
	}
}
</script>



<!DOCTYPE html>
<html>
<h1>Datos del usuario:</h1>
<span id="parrafo"></span>

<p id="objeto"></p>

<script>
var datos;

fetch('https://jsonplaceholder.typicode.com/users')
    .then(response => response.json())
    .then(function(myJson) {
        console.log(myJson);
        //console.log(myJson[0].id);
        //console.log(myJson[0].name);
        //console.log(myJson[0].email);

        //document.getElementById("parrafo").innerHTML = myJson[0].name;

        for(var j=0; j<10;j++){
            for(i in myJson[j]){
                document.getElementById("objeto").innerHTML += "<p><strong>" + myJson[j][i] + "</strong></p>";
            }
        }

    });

</script>

</html>