{
"id": "1",
"name": "Peter Paul",
"description": "I will like to purchace an apple",
"price": 10,
"itemCount": 2,
"isActive": true,
"CreatedDateTime": "2021-08-06T14:23:42.483Z",
"ModifiedDateTime": "2021-08-06T14:23:42.483Z"
}
{
"error": {
"code": 403,
"message": "YouTube Data API v3 has not been used in project 300294518029 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=300294518029 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"errors": [
{
"message": "YouTube Data API v3 has not been used in project 300294518029 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=300294518029 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"domain": "usageLimits",
"reason": "accessNotConfigured",
"extendedHelp": "https://console.developers.google.com"
}
],
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developers console API activation",
"url": "https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=300294518029"
}
]
},
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "SERVICE_DISABLED",
"domain": "googleapis.com",
"metadata": {
"service": "youtube.googleapis.com",
"consumer": "projects/300294518029"
}
}
]
}
}
{"message":"successfully fetched categories","status":"200","payload":[{"id":"bffdec32-cf5c-4278-b34c-056f2993e2e8","title":"Photo Editing Basics","description":"The basic photo editing techniques should be available in even simple editing programs","isPublished":true,"categories":[{"id":1,"name":"string","imageUrl":"https://i1.adis.ws/i/canon/getting-started-video-thumb-1920x1080?fmt=jpg&fmt.options=interlaced&bg=rgb(255,255,255)"}],"teacher":{"id":"a4713a6e-3e5a-45a2-ac9a-7545d30e10a9","username":"string","email":"string@gmail.com","profile":"https://i1.adis.ws/i/canon/getting-started-video-thumb-1920x1080?fmt=jpg&fmt.options=interlaced&bg=rgb(255,255,255)","telephone":"string","roles":["TEACHER"]},"comments":[],"thumbnail":"https://storage.ws.pho.to/s2/ba5069b25867b2305fe566efdffa8813bdee34c5_m.jpeg","createdDate":"2022-09-14T13:13:42","lastModified":"2022-09-14T13:13:48"},{"id":"0be3130b-14a0-48fa-a5f9-ac4515fe2948","title":"Camping World Blog Picture Perfect: Tips to Take Stunning Outdoor Photos With Your Phone – Gander RV","description":"Camping World Blog
Picture Perfect: Tips to Take Stunning Outdoor Photos With Your Phone – Gander RV Camping World Blog
Picture Perfect: Tips to Take Stunning Outdoor Photos With Your Phone – Gander RV","isPublished":true,"categories":[{"id":1,"name":"string","imageUrl":"https://i1.adis.ws/i/canon/getting-started-video-thumb-1920x1080?fmt=jpg&fmt.options=interlaced&bg=rgb(255,255,255)"}],"teacher":{"id":"67bd94d7-f204-49d1-afe9-d594db841853","username":"Sngoun Lyhou","email":"sngounlyhou@gmai.com","profile":"https://springams.hrd-edu.info/api/v1/files/view/faa80ca9-df32-459a-bf88-2e3560213d76.jpg","telephone":"+85511340579","roles":["READER"]},"comments":[],"thumbnail":"https://cwhdrmteam.nyc3.digitaloceanspaces.com/wp-content/uploads/2018/12/14114102/emre-karatas-194355-unsplash-1170x680.jpg","createdDate":"2022-09-14T13:13:45","lastModified":"2022-09-14T13:13:50"},{"id":"f53a9448-871d-4091-9ad3-2015101e9ba4","title":"Closing day","description":"basic course","isPublished":true,"categories":[{"id":1,"name":"string","imageUrl":"https://i1.adis.ws/i/canon/getting-started-video-thumb-1920x1080?fmt=jpg&fmt.options=interlaced&bg=rgb(255,255,255)"}],"teacher":{"id":"a4713a6e-3e5a-45a2-ac9a-7545d30e10a9","username":"string","email":"string@gmail.com","profile":"https://i1.adis.ws/i/canon/getting-started-video-thumb-1920x1080?fmt=jpg&fmt.options=interlaced&bg=rgb(255,255,255)","telephone":"string","roles":["TEACHER"]},"comments":[],"thumbnail":"https://springams.hrd-edu.info/api/v1/files/view/a3cb08b0-8ac2-4b5d-a372-c74edc94ecac.jpg","createdDate":"2022-09-14T13:13:46","lastModified":"2022-09-14T13:13:52"},{"id":"e7c2f48c-a604-492c-9bf8-bd5b0dcd260c","title":"iStock 729,799 Hopeful Stock Photos, Pictures & Royalty-Free Images - iStock","description":"iStock
729,799 Hopeful Stock Photos, Pictures & Royalty-Free Images - iStock","isPublished":true,"categories":[{"id":1,"name":"string","imageUrl":"https://i1.adis.ws/i/canon/getting-started-video-thumb-1920x1080?fmt=jpg&fmt.options=interlaced&bg=rgb(255,255,255)"}],"teacher":{"id":"67bd94d7-f204-49d1-afe9-d594db841853","username":"Sngoun Lyhou","email":"sngounlyhou@gmai.com","profile":"https://springams.hrd-edu.info/api/v1/files/view/faa80ca9-df32-459a-bf88-2e3560213d76.jpg","telephone":"+85511340579","roles":["READER"]},"comments":[],"thumbnail":"https://cwhdrmteam.nyc3.digitaloceanspaces.com/wp-content/uploads/2018/12/14114102/emre-karatas-194355-unsplash-1170x680.jpg","createdDate":"2022-09-14T13:13:45","lastModified":"2022-09-14T13:13:51"},{"id":"ee9d5608-9273-48dd-84d5-09cb6b14c8d5","title":"Nice view while raining in Phnom Penh ","description":"A relax life when it is raining in Phnom Penh ","isPublished":true,"categories":[{"id":2,"name":"Social","imageUrl":"https://springams.hrd-edu.info/api/v1/files/view/45d31431-49dc-431f-a6ae-1f5c8e87ab50.jpg"}],"teacher":{"id":"1e0083eb-96ff-45e6-9a9c-d0b56524889e","username":"Chab Tharin","email":"chabtharin@gmail.com","profile":"https://springams.hrd-edu.info/api/v1/files/view/b6384573-cb14-43ea-b750-16c41007c4af.jpeg","telephone":"+85511640290","roles":["READER"]},"comments":[],"thumbnail":"https://springams.hrd-edu.info/api/v1/files/view/31ce2a6a-801b-4f3e-8b44-613ad99a2c20.jpg","createdDate":"2022-09-14T13:13:44","lastModified":"2022-09-14T13:13:50"}],"page":1,"size":5,"totalElements":45,"totalPages":9}
// asigno el json a una variable
var json = { "id": 197, "entrada": "07:00:00", "salida": "18:00:00", "descanso":
"02:00:00", "fecha": "2018-10-02","cantidad": "09:00", "proyecto":
"Contrato 343/2017" };
console.log(json);
// modifico el json agregando un nuevo atributo como
// si fuera un objeto
json.nuevaClave = "nuevoValor";
console.log(json);
EjecutarEsconder resultados
//if you are writing a JSON file and want to check if you have made it right go to
//JSONLint and past your JSON text in and it will find mistakes in it
{"id":"1","title":"GitHub introduces dark mode and auto-merge pull request","excerpt":"GitHub today announced a bunch of new features at its virtual GitHub...","body":"GitHub today announced a bunch of new features at its virtual GitHub Universe conference including dark mode, auto-merge pull requests, and Enterprise Server 3.0. In the past couple of years, almost all major apps have rolled out a dark theme for its users, so why not GitHub?"}