Загрузка страницы

What is JSON - JSON Parsing in Swift

What is JSON and how do you parse JSON in Swift? This video will show you! (This video is sponsored by Atlantic.net. 1 Year Free Hosting: https://www.atlantic.net/codewithchris/ Use code CHRIS for an additional $25!)

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!

CodeWithChris Resource links:

Check out my friend, Stewart's video tutorials on JSON parsing in Swift! Stewart goes into more detail and complexity in this video series:
⚡https://www.youtube.com/playlist?list=PLBn01m5Vbs4DKrm1gwIr_a-0B7yvlTZP6

Get a customized roadmap for your app and start building it in 7 days:
⚡https://codewithchris.com/actionplan/?utm_source=youtube&utm_medium=video&utm_campaign=whatsjson&utm_content=whatsjson_ytdescription

My Courses and Training:
📚 https://codewithchris.com/beginnercourse/?utm_source=youtube&utm_medium=video&utm_campaign=whatsjson&utm_content=whatsjson_ytdescription

ALL my recording equipment and recommended books:
📚https://www.amazon.com/shop/codewithchris

To continue learning how to make apps with us, be sure to subscribe to our channel:
⚡https://www.youtube.com/user/codewithchris?sub_confirmation=1

And we also have a thriving Facebook community where you can meet like-minded iOS learners and get support on your own iOS app development journey!
⚡https://codewithchris.com/community/

My guide for Xcode on Windows:
⚡https://codewithchris.com/xcode-for-windows/?utm_source=youtube&utm_medium=video&utm_campaign=whatsjson&utm_content=whatsjson_ytdescription

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you'll find a community of like-minded learners! Learning something new is always more fun with other people!

⚡Website: https://codewithchris.com/?utm_source=youtube&utm_medium=video&utm_campaign=whatsjson&utm_content=whatsjson_ytdescription
⚡Instagram: https://instagram.com/CodeWithChris
⚡Twitter: https://twitter.com/CodeWithChris

CodeWithChris is dedicated to teaching beginners and non-programmers all about how to make an app. On the site, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift, Xcode and app building from my course and materials!

Here's just a sample of the success stories my students have sent in:
https://codewithchris.com/success-stories/?utm_source=youtube&utm_medium=video&utm_campaign=whatsjson&utm_content=whatsjson_ytdescription

#JSON #Parsing #CodeWithChris

Видео What is JSON - JSON Parsing in Swift канала CodeWithChris
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
7 февраля 2020 г. 21:27:50
00:24:15
Яндекс.Метрика