Тёмный
No video :(

Learn JSON files in 10 minutes! 📄 

Bro Code
Подписаться 2,1 млн
Просмотров 47 тыс.
50% 1

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@BroCodez
@BroCodez 8 месяцев назад
// JSON = (JavaScript Object Notation) data-interchange format // Used for exchanging data between a server and a web application // JSON files {key:value} OR [value1, value2, value3] // JSON.stringify() = converts a JS object to a JSON string. // JSON.parse() = converts a JSON string to a JS object // ---------- JSON.stringify() ---------- const names = ["Spongebob", "Patrick", "Squidward", "Sandy"]; const person = { "name": "Spongebob", "age": 30, "isEmployed": true, "hobbies": ["Jellyfishing", "Karate", "Cooking"] }; const people = [{ "name": "Spongebob", "age": 30, "isEmployed": true }, { "name": "Patrick", "age": 34, "isEmployed": false }, { "name": "Squidward", "age": 50, "isEmployed": true }, { "name": "Sandy", "age": 27, "isEmployed": false }]; const jsonString = JSON.stringify(people); console.log(jsonString); // ---------- JSON.parse() ---------- const jsonNames = `["Spongebob", "Patrick", "Squidward", "Sandy"]`; const jsonPerson = `{"name": "Spongebob", "age": 30, "isEmployed": true, "hobbies": ["Jellyfishing", "Karate", "Cooking"]}`; const jsonPeople = `[{"name": "Spongebob","age": 30,"isEmployed": true}, {"name": "Patrick","age": 34,"isEmployed": false}, {"name": "Squidward","age": 50,"isEmployed": true}, {"name": "Sandy","age": 27,"isEmployed": false}]`; const parsedData = JSON.parse(jsonPeople); console.log(parsedData); // ---------- fetch() ---------- fetch("people.json") .then(response => response.json()) .then(values => values.forEach(value => console.log(value))) .catch(error => console.error(error));
@kadirertan8664
@kadirertan8664 8 месяцев назад
even though i have watched so many JS tutorials i still watch bro's tutorials (especially while eating) because why not
@ahamednafees9961
@ahamednafees9961 8 месяцев назад
Frr I've literally done projects in js still I'd watch whatever bro posts cus of the unique little things he teaches
@farhanarahman9375
@farhanarahman9375 4 месяца назад
dont be in tutorial hello bro
@kadirertan8664
@kadirertan8664 4 месяца назад
​@@farhanarahman9375 Hello. Yes, you are right. It might seems like tutorial hell but I enjoy watching fundamentals and thats my method for practice fundamentals quickly.
@sheaxchen
@sheaxchen Месяц назад
damn i'm literally eating now
@pastori2672
@pastori2672 8 месяцев назад
im so glad you're making more backend specific videos
@shadyawad5383
@shadyawad5383 7 месяцев назад
what do you mean "backend specific videos" ? where can i find those ?
@pastori2672
@pastori2672 7 месяцев назад
@@shadyawad5383 stuff like interacting with other servers and using APIs http requests databases etc.. theres plenty of videos about them
@jawad_youtube
@jawad_youtube 6 месяцев назад
aren't these used in FE too?
@m7mdMAH5
@m7mdMAH5 Месяц назад
Yes, not only used but required.. @jawad_youtube
@bonnymich
@bonnymich 6 дней назад
I love you! you are my god man make more of this! FREE KNOWLEDGE GAWD I LOVE YOU
@jiyoungkim9258
@jiyoungkim9258 8 месяцев назад
love every JS series
@CatholicWeeb
@CatholicWeeb 8 месяцев назад
Thanks mate for your great videos, they help a lot!
@vallunacoder.wecodetogether
@vallunacoder.wecodetogether 7 месяцев назад
hey Bro I started this series almost a month ago, I have been struggling with JavaScript for a long time. But you videos are gold dude!! THANKS For your explanations 🤗🤗 Which course do you thing we should try after this one? GREETINGS FROM COLOMBIA LATIN AMERICA 🤩
@ofekcohen6559
@ofekcohen6559 8 месяцев назад
hey bro. you plan to make node js and express js tutorial?
@laperplayz1388
@laperplayz1388 8 месяцев назад
yo bro can you please make an advanced c++ tutorial that talks about vectors and polymorphism, encapsulation, abstraction, and the auto keyword, and also new features added to the latest version please
@hunin27
@hunin27 8 месяцев назад
hey thanks bro, are you thinking about making more back end tutorials? i noticed you have a mySQL course but not really node js or anything else
@hunin27
@hunin27 8 месяцев назад
2024 is amazing bro, thank you so much
@mraloush8959
@mraloush8959 8 месяцев назад
@@BroCodez i would love a node.js one from you specifically bcs i just understand u all the time
@samilqs
@samilqs 8 месяцев назад
@@BroCodez ur the goat, please share some social media to follow u bro
@kart_m
@kart_m 4 месяца назад
fetch isnt working for me at all. It is unable to read local json files.
@srinathgadde5510
@srinathgadde5510 Месяц назад
same here! Did you rectified this error?
@mraloush8959
@mraloush8959 8 месяцев назад
i learned a lot of things from you as a noob. now i point my friends who are learning to you channel and they really like it
@DeltaXML_Ltd
@DeltaXML_Ltd 6 месяцев назад
Brilliant video!
@oybekx3d
@oybekx3d 5 месяцев назад
sup, u plannin next video for this one? Im learning json and ur videos help me a lot
@user-vx1ii2ic4v
@user-vx1ii2ic4v 8 месяцев назад
Hey How about a tutorial for a low level language such as assembly language? I would also like to say that your cideos been a great help even if its just a hobby.
@doronfeldman5152
@doronfeldman5152 8 месяцев назад
Can you do a node js course?
@speedlearner
@speedlearner 9 дней назад
What if you have created a JSON file and you want to display the JSON data inside a HTML textbox? I noticed that you didn't mention this in your video.
@Swxfty_
@Swxfty_ 8 месяцев назад
Week 3 of asking for bro code to make a typescript series
@sreenandhm6319
@sreenandhm6319 7 месяцев назад
Bro can you please make unity or Unreal engine 5 Tutorial.
@Pickle_63
@Pickle_63 2 месяца назад
How do you write the json to the actual file though? As in changing/adding to the data in the names.json and people.json and such?
@dandana5767
@dandana5767 4 месяца назад
terimakasih bang, sangat membantu.
@gpu_governor
@gpu_governor 8 месяцев назад
@BroCodez why are you creating a new javascript playlist, will the old one be deleted ?
@seifeddinejaziri9312
@seifeddinejaziri9312 6 месяцев назад
Please we need an angular tutorial
@exactmidnight
@exactmidnight Месяц назад
I'm watching it cuz I can