Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

What is JSON - JSON Parsing in Swift

Автор: CodeWithChris

Загружено: 2020-02-07

Просмотров: 76337

Описание:

What is JSON and how do you parse JSON in Swift? This video will show you!

JSON stands for JavaScript Object Notation and it's a way to represent data in a standard way. It helps organize that data in a way that machines can "read".

Think about how a dictionary is organized alphabetically and each entry has a word followed by a definition. There's a well defined standard which makes it easy to process the info.

The JSON data format is often used in a data feed or in the returned data from an API call.

Because the data is in a standard data format, our app can "parse" out the information from the data feed or API response.

To understand how JSON is organizes data, you need these 3 concepts:

Key-Value pairs: The key is a label and the value is the actual data. Together, a key-value pair represents one piece of information.

JSON Object: This is a collection of key-value pairs together. Often the key-value pairs are related together so that the collection (JSON object) represents a bigger piece of data. For example, the JSON Object could represent a person and the collection of key-value pairs represents the attributes of the person.

Array: An array in JSON represents a list of JSON objects or other values.

For an example of JSON data, check out the video tutorial! In the video, I also show how to parse JSON in Swift using the Codable protocol.

We take the response JSON data from a real API call and then parse it in Swift!

🚨 SPECIAL CWC+ OFFER FOR YOUTUBE:
https://cwc.to/youtubeoffer

MY FREE ONLINE COURSE:
⚡ How to make an app in 14 days - https://cwc.to/14days

CWC+ PROGRAM:
👩‍💻 All our courses in a learning path - https://cwc.to/plus

WEEKLY UPDATES VIA EMAIL:
✉️ Every Saturday, receive an email digest of new content - https://cwc.to/newsletter

CONNECT:
🌍 Website - https://codewithchris.com
😺 GitHub - https://github.com/codewithchris
📸 Instagram -   / codewithchris  
🐦 Twitter -   / codewithchris  

ABOUT CODEWITHCHRIS:
Hi I’m Chris! I’m dedicated to teaching fundamentals about how to make an app. This is important if you’re trying to land an iOS job, be a freelancer, increase or start a business with an app idea. On this channel and my website, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have learned to code and build apps on their own! https://cwc.to/reviews

#JSON #Parsing #CodeWithChris

What is JSON - JSON Parsing in Swift

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

array(10) { [0]=> object(stdClass)#6298 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "xstqlNCOZT8" ["related_video_title"]=> string(85) "Как парсить json в SWIFT. Parse JSON SWIFT. Работа с JSON iOS SWIFT" ["posted_time"]=> string(21) "3 года назад" ["channelName"]=> string(12) "iCode School" } [1]=> object(stdClass)#6271 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "ERr0GXqILgc" ["related_video_title"]=> string(67) "Swift API Calls for Beginners (Networking) - Async Await & JSON" ["posted_time"]=> string(21) "2 года назад" ["channelName"]=> string(10) "Sean Allen" } [2]=> object(stdClass)#6296 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "jD6c9y8CFGQ" ["related_video_title"]=> string(26) "Data Flow in a SwiftUI App" ["posted_time"]=> string(21) "3 года назад" ["channelName"]=> string(13) "CodeWithChris" } [3]=> object(stdClass)#6303 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "3nwcNLM3KOU" ["related_video_title"]=> string(58) "How To Work With Any API (API Tutorial using URL Requests)" ["posted_time"]=> string(19) "5 лет назад" ["channelName"]=> string(13) "CodeWithChris" } [4]=> object(stdClass)#6282 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "Z_uuij49rgM" ["related_video_title"]=> string(175) "Исчезновение урана: начало ядерной игры? Китай угрожает страшными последствиями /№969/ Юрий Швец" ["posted_time"]=> string(23) "5 часов назад" ["channelName"]=> string(54) "Юрий Швец -- официальный канал" } [5]=> object(stdClass)#6300 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "mThiyFYEQhY" ["related_video_title"]=> string(163) "«Будем жить!» | Хитрая передача на Первом канале о вернувшихся с СВО (English subtitles) @Max_Katz" ["posted_time"]=> string(24) "14 часов назад" ["channelName"]=> string(19) "Максим Кац" } [6]=> object(stdClass)#6295 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "3aEYi89QLIg" ["related_video_title"]=> string(179) "Важно! ГУДКОВ: "Путин дрогнул, но информация тревожная". Что сокращает КРЕМЛЬ, Украина готовит удар" ["posted_time"]=> string(23) "5 часов назад" ["channelName"]=> string(24) "И Грянул Грэм" } [7]=> object(stdClass)#6305 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "kAo3cLGS2f8" ["related_video_title"]=> string(48) "Фронт продолжает сыпаться" ["posted_time"]=> string(24) "19 часов назад" ["channelName"]=> string(27) "Анатолий Шарий" } [8]=> object(stdClass)#6281 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "BgPpYdBet8M" ["related_video_title"]=> string(188) "«Сами скоро сдохнут, а нас хоронят!»: Путин ответил на попытки Запада похоронить экономику России" ["posted_time"]=> string(23) "8 часов назад" ["channelName"]=> string(14) "Diplomatrutube" } [9]=> object(stdClass)#6299 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "Z7_vSj5G3EU" ["related_video_title"]=> string(163) "ПОТАПЕНКО: "Я скажу страшную вещь". Про экономику, Силуанова, пакет с пакетами и ЧТО ДАЛЬШЕ" ["posted_time"]=> string(24) "11 часов назад" ["channelName"]=> string(24) "И Грянул Грэм" } }
Как парсить json в SWIFT. Parse JSON SWIFT. Работа с JSON iOS SWIFT

Как парсить json в SWIFT. Parse JSON SWIFT. Работа с JSON iOS SWIFT

Swift API Calls for Beginners (Networking) - Async Await & JSON

Swift API Calls for Beginners (Networking) - Async Await & JSON

Data Flow in a SwiftUI App

Data Flow in a SwiftUI App

How To Work With Any API (API Tutorial using URL Requests)

How To Work With Any API (API Tutorial using URL Requests)

Исчезновение урана: начало ядерной игры? Китай угрожает страшными последствиями /№969/ Юрий Швец

Исчезновение урана: начало ядерной игры? Китай угрожает страшными последствиями /№969/ Юрий Швец

«Будем жить!» | Хитрая передача на Первом канале о вернувшихся с СВО (English subtitles) @Max_Katz

«Будем жить!» | Хитрая передача на Первом канале о вернувшихся с СВО (English subtitles) @Max_Katz

Важно! ГУДКОВ:

Важно! ГУДКОВ: "Путин дрогнул, но информация тревожная". Что сокращает КРЕМЛЬ, Украина готовит удар

Фронт продолжает сыпаться

Фронт продолжает сыпаться

«Сами скоро сдохнут, а нас хоронят!»: Путин ответил на попытки Запада похоронить экономику России

«Сами скоро сдохнут, а нас хоронят!»: Путин ответил на попытки Запада похоронить экономику России

ПОТАПЕНКО:

ПОТАПЕНКО: "Я скажу страшную вещь". Про экономику, Силуанова, пакет с пакетами и ЧТО ДАЛЬШЕ

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]