How to parse & decode JSON data in SwiftUI Tutorial 2022 (Xcode)

How to parse & decode JSON data in SwiftUI Tutorial 2022 (Xcode)

Indently

2 года назад

20,331 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@jotee804
@jotee804 - 17.02.2022 09:56

Nice. This is the next step in my project I am working on and haven’t yet been able to figure out how to do it. Great help as usual. 👍🏻

Ответить
@amandabee684
@amandabee684 - 03.03.2022 00:57

great tutorial!! thank you!

Ответить
@dgh6565
@dgh6565 - 05.03.2022 14:45

Thanks !

Ответить
@bocetta8936
@bocetta8936 - 20.03.2022 00:04

if you can stock your json file on ligne where is the best place to host JSON file ?

Ответить
@Created_anyway
@Created_anyway - 07.04.2022 05:27

Thank you. It helped me a lot.

Ответить
@izzzanaaami
@izzzanaaami - 10.04.2022 17:59

Thanks from Russia

Ответить
@BoukeGroenescheij
@BoukeGroenescheij - 12.04.2022 17:25

Great tutorial, one of the better explanations so far! I like the clarity and the step-by-step approach which is easy to follow. Doing those few design examples also helps a lot. Also liked your explanation of what went wrong. I also like the fact you're using one of the latest current versions at this moment, which certainly helps following along. Subbed!

Ответить
@FinnishArmy
@FinnishArmy - 16.04.2022 00:11

I'm still getting "could not find intel.json in project" I dragged it in and it's there. I even put them all in the same group.

Ответить
@basilbenaziz5549
@basilbenaziz5549 - 01.08.2022 20:23

The most simple and easiest explanation thank you for your work

Ответить
@kishorekumar7631
@kishorekumar7631 - 26.08.2022 10:42

very legitimate explanation 🤗👏

Ответить
@rashaadratliff-brown2734
@rashaadratliff-brown2734 - 15.09.2022 16:18

How do I encode and append an object back to the JSON file?

Ответить
@SOK-gn6hw
@SOK-gn6hw - 25.09.2022 17:52

After decode its become a let and I can't make changes on struct.

Ответить
@christianmoreno7390
@christianmoreno7390 - 27.09.2022 07:59

Woww, what a great tutorial! Subscribed!!

Ответить
@pierremarais7669
@pierremarais7669 - 18.10.2022 18:52

Thanks you are a STAR, I am 63 years and start learning SwiftUI, I have apps on the Appstore for the last 10 years all written in Obj-C. I have a question for you please; my .json file has got 540 000 line items, I want to do a search for a STRING before I display the data. I did follow your example. Can you maybe when and where to the SEARCH function. Thanks Pierre

Ответить
@furmeldahyde
@furmeldahyde - 10.01.2023 11:10

Can this be done with the latest version of macOS or will I need to revert? When I create my private var I get a warning that my app quick unexpectedly and if I click reopen it says "You can't use this version of the application "appname" with this version of macOS."

Ответить
@omerklbkr
@omerklbkr - 29.03.2023 01:17

Hi there ! I want to use json from URL how can i do this ?

Ответить
@fabiofloris2521
@fabiofloris2521 - 01.05.2023 13:37

Hi Federico, thanks for your tutorial.. I have a problem with a JSON file or the app crashes when it starts decoding and therefore the data is not loaded. I noticed that the JSON file is a little different from yours in the video example, I downloaded it from Facebook to test and I got the Facebook JSON file with all the friends in my account and the format is this:
{
"friends_v2": [
{
"name": "Test Test",
"timestamp": 1678361485
},
{
"name": "Test2 ",
"timestamp": 1678318229
},
{
"name": "Test 3",
"timestamp": 1675869376
}
]
}

As you can see the file doesn't start with name and timestamp but before them there is "friends_v2". I noticed that if I delete that "friend_v2" everything works otherwise it doesn't. In case I get uneditable JSON like this (so I can't delete "friend_v2" how can I make everything work by following your example in the video? what code change should I make? Thank you very much for your time

Ответить
@frenchtm5001
@frenchtm5001 - 14.06.2023 20:52

Hey, if i'm pulling a request from an API, what should i change ?

Ответить
@AlancRodriguez
@AlancRodriguez - 21.11.2023 04:43

I don't get it, why did we have that bug

Ответить
@carloslemare6060
@carloslemare6060 - 30.12.2023 02:40

Excellent tutorial. Finally I understand how to do this. Thanks!!

Ответить
@rafaelproenca7329
@rafaelproenca7329 - 20.03.2024 18:45

Awesome. Thank you. Exactly what I wanted in the format I needed.

Ответить