Golang Json Conversions - Built-in Json Library in Go

preview_player
Показать описание
Golang Json Conversions - Built-in Json Library in Go
Today's Golang tutorial video is all about the built in Json Library in Go programming language. We will go through the purpose of Json in Golang, how you will write a Golang Json, and any other things that you need to know to fully understand Json in Go/Golang. Enjoy!

--
Golang Dojo is all about becoming Golang Ninjas together. You can expect all kinds of Golang tutorials, news, tips & tricks, and my daily struggles as a Golang developer. Make sure to subscribe if you look forward to such content!

--
Timestamps
0:00 Intro
0:39 Struct
0:55 Unmarshal a JSON string into a Go object
5:13 Marshal the Go object into a JSON string
8:37 Debugging
9:36 Outro

--
#golang #goprogramming #golangdojo
Рекомендации по теме
Комментарии
Автор

Very simply and clearly explained. Thanks

alperari
Автор

Your videos are great. I have binge watched all of them.
Please make videos on go-modules.

logtoadityaraj
Автор

If you keep going content like now new comer like will never forget your time also as golang is raising your audience will be Insha Allah 🙏

pss_crs
Автор

You should have mentioned what is that `json:"full_name"` thing. I had to do some research and apparently these are called tags? Could you make a separate video on that topic? Looks like a must have for advanced programming in go.
Another thing is there a way to declare the field mapping outside of the field tags? Sometimes I might not want to pollute the structures with such tags.

jachymtousek
Автор

Hi so greater videos cover everything in a topic, keep it up

muditmohantyagi
Автор

I just discoverd that maybe I'm a paranoid person because I already do exactly what you said in 4:47 :)

sestremADB
Автор

Very good tutorial! Question - what if you want to make a lambda function that receives a completely unknown JSON and you want the lambda to extract various fields from the unkown json and the fields to extract are also unknown and are read from a configuration stored in a database? How would you do that in go? I had to do this for my work plus transforming the json according to a config script stored in the database. I did it in both nodejs and python. For extracting fields and transforming the json I used lodash for nodejs and pydash for python using the _.get() and _.set() methods. How can I do this in golang?

always-ask-why
Автор

Another amazing video. But can you please explain why didn't you use json.NewDecoder instead of json.Unmarshal?

vanshajdhar
Автор

How do we parse UN-structured data in golang?

cosmo_felicity
Автор

Why not make a video about your favorite ten Golang books?

flexairz
Автор

Kinesis split keyboard... a higher form of mammal. Not quite totally split + layering level of keyboard primate, but still a higher level of primate than most :)

abates
Автор

what about json arrays with golang slices?

yotubeaccoutsuperawesome
Автор

Great Video, can you please tell what's the difference between string and []byte. and when to use when ? got confused still new to Go.

anythingcommon
Автор

Hello sir, I’ve been trying to convert a single csv file from excel into multiple json files by using its rows but I seem to fail in my code base. I can send you what I’ve done so far through an email because I really need help to pass my test

StephenBukz