What is JSON?

preview_player
Показать описание
👍 Learn to make awesome games step-by-step from start to finish.
In this video we're going to learn what is JSON, how its formatted and how we can use it in Unity to easily Save and Load Data.

If you have any questions post them in the comments and I'll do my best to answer them.

See you next time!

#unitytutorial #unity3d #unity2d

--------------------------------------------------------------------

Hello and welcome, I am your Code Monkey and here you will learn everything about Game Development in Unity 2D using C#.

I've been developing games for several years with 7 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

--------------------------------------------------------------------

Рекомендации по теме
Комментарии
Автор

🌐 Have you found the videos Helpful and Valuable?

CodeMonkeyUnity
Автор

I watched this video while in bed, don’t even have Unity open, and it makes sense. Thank you very much! I’m excited to get my game started

metal-rain
Автор

Dude! This tutorial was awesome! Words cannot express my gratitude for unwrapping a topic that had been driving me crazy so simply and precisely. Thank you!!! :D

AliveNotDeadmund
Автор

*Question*
How do you use this to save multiple different systems?




*Possible Answer*
Each System would have it's SaveObject and a function that returns a JSON string, then you would have a master SaveObject that would contain multiple string fields for storing each system JSON save string.
You would then save the final JSON from that object into a save file.
For loading you would load that master SaveObject and then use the stored JSON save strings to load all the other systems.

CodeMonkeyUnity
Автор

The speed in which you typed "GameHandler" was incredible. You bow to no-one sir.

lukaskarlgerhard
Автор

This is the best tutorial I've seen in a long time, thank you! You explained how everything worked really thoroughly yet also simplistically. Thanks for the help!

upsidegaming
Автор

This is thee JSON video I needed thanks for making this!!

SPIKEAdventure
Автор

In 5:33, You forgot to put "/" in line 18 before "savefile.json". Oddly, in 5:54, the "/" appears in line 18.

vaporalight
Автор

HEROE!
Antes no entendia nada nadita del JSON, ahora que he usado varias apis y vuelvo a buscar tutorial (Este), si lo entiendo muy facil!

albertochen
Автор

Man you are Genius and best unity teacher thank you 🙏

kingdoom
Автор

Thanks, I've been wondering about this subject for a while

biggestboss
Автор

Super useful, much easier than the binary formatter system that I was initially advised to use. Thanks!

Pizzaboy_
Автор

5.42 : File.WriteAllText (Application.dataPath + "saveFile.json", json);
5.55 : File.WriteAllText (Application.dataPath + "/saveFile.json", json);
Good joke :)
After a few questions about this code that was not working, I was able to finish the video. Jason is a nice, accommodating little guy ...

jean-michel.houbre
Автор

This is the best tutorial I ever seen.

NeoLoveCookie
Автор

bro that was super useful thanks for the help I really needed it

davidnikolov
Автор

I just found thiss and it's some good info thank you I understand it a little better!

redbeardjunior
Автор

Great tutorial! Is JSON + IO better than playerprefs in terms of performance? If I have to save settings, what's the best way? JSON or playerprefs? thanks.

MaizeDaniele
Автор

If you cant see your file generated under your project folder name try to replace Application.dataPath for it worked for me. it will looks like: + "/saveFile.json", json);

vilmaryssalgadovivenes
Автор

You are an absolute god!!! Thank you for this video!!!! You saved me!

ManasJoshi
Автор

Clean and neat tutorial. Thanks and god bless you!!

RobertGercia