Parsing Json in Java Tutorial - Part 1: Jackson and Simple Objects

  Рет қаралды 122,565

CoderFromScratch

CoderFromScratch

Күн бұрын

Пікірлер
@parildoshi6004
@parildoshi6004 3 жыл бұрын
Really liked the way you teach the topic with test cases with the best industry level practices.
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
Thanks so much !
@MrKrishnasinghal
@MrKrishnasinghal 2 жыл бұрын
This is such a good video, Idk why people didnt comment ques and ans instead of all that.
@JustinDouglas-j4m
@JustinDouglas-j4m Жыл бұрын
hi im new to all of this but this code is giving me a error. public class Json { private static ObjectMapper objectMapper = getDefaultObjectMapper(); private static ObjectMapper getDefaultObjectMapper() { ObjectMapper defaultObjectMapper = new ObjectMapper(); return defaultObjectMapper; } public static JsonNode parse(String src) throws IOException { return ObjectMapper.readTree(src); } } Non-static method 'readTree(java.lang.String)' cannot be referenced from a static context. any help is appreciated
@SuperCoderFromScratch
@SuperCoderFromScratch Жыл бұрын
Hey, how is it going? Sorry for taking so long to reply. Have you checked this tutorial repository? The code there should still work.
@JustinDouglas-j4m
@JustinDouglas-j4m Жыл бұрын
@@SuperCoderFromScratch Hey bro, i have not checked it but i did find the issue. i was trying to call the object instead of it's instance which led to my error. Thnx for helping appreciate it.
@mariumbegum7325
@mariumbegum7325 2 жыл бұрын
Brilliant first part to the tutorial! Great work!
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
Thanks so much !
@bahaabadr439
@bahaabadr439 2 жыл бұрын
hi, iam getting the error: "Definieren Sie die Hauptmethode als: public static void main(String[] args):" am i missing launching the app from "public static void main(String[] args) from anywhere in your tutorial?
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
Yes, you maybe are. The reason is the code is basically ran from tests if I remember correctly. You can use obviously the classes in program, but you need to provide the program. Does this make sense ?
@roary4092
@roary4092 4 жыл бұрын
Thank you for making this video, found it very informative.
@SuperCoderFromScratch
@SuperCoderFromScratch 4 жыл бұрын
Hey @Roary529 !!! Thanks so much for the feedback!
@dray.mp4839
@dray.mp4839 4 жыл бұрын
L ;-;
@mks5988
@mks5988 3 жыл бұрын
If json file contains any nonascii character like a french letter 'e how to parse it throws exception
@SuperCoderFromScratch
@SuperCoderFromScratch 3 жыл бұрын
Can you open an issue at: github.com/CoderFromScratch/json-in-java-tutorial ? Need to see that exception and know which systems you are running this in.
@kamil3409
@kamil3409 4 жыл бұрын
{ "video_rating": "amazing", }
@SuperCoderFromScratch
@SuperCoderFromScratch 4 жыл бұрын
Thanks man !
@nirajchowdhary7372
@nirajchowdhary7372 2 жыл бұрын
I believe when you write assertEquals, "Coder from scratch" will come as the first parameter and getting value from node tree as second. I know it does not matter but just mentioning it since i noticed that. assertEquals(expected, actual) is the convention. BTW great video :D
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
You are absolutly correct.
@ChazWinter
@ChazWinter Жыл бұрын
It always bothers me when people switch them around hahaha
@blackheat8
@blackheat8 Жыл бұрын
You’re a tremendous help. Thank you!!
@SuperCoderFromScratch
@SuperCoderFromScratch 3 ай бұрын
You are so welcome! Thanks for the feedback!
@markthomas9641
@markthomas9641 2 жыл бұрын
Great video, thank you. DeltaJSON is really useful if you are working with JSON, it does compare, merge and graft.
@yaroslavprozorov
@yaroslavprozorov Жыл бұрын
Thanks man, you did really a good job
@SuperCoderFromScratch
@SuperCoderFromScratch 3 ай бұрын
Thanks so much for the feedback, I really do appreciate it!
@unfinishedsentenc9864
@unfinishedsentenc9864 3 жыл бұрын
I really liked the tutorial. I just wish that you would increase font size or zoom in while typing. It is very difficult to read.
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
Than ks for the feedback! Will work on this !
@ibrahimothman366
@ibrahimothman366 2 жыл бұрын
can't I use intellij builder ?
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
You can but then you would need to add the libs you are dependent on manually as dependencies. Doing it through maven just saves time.
@ibrahimothman366
@ibrahimothman366 2 жыл бұрын
@@SuperCoderFromScratch ok
@sebon11
@sebon11 Жыл бұрын
Nice tutorial, thank you dude
@SuperCoderFromScratch
@SuperCoderFromScratch Жыл бұрын
Thank you! For the feedback and boost!
@mayukhbhattacharya2304
@mayukhbhattacharya2304 Жыл бұрын
Learned a lot
@SuperCoderFromScratch
@SuperCoderFromScratch Жыл бұрын
Thank so much
@zr60
@zr60 2 жыл бұрын
doesn't work for collections
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
Really ? I need to look at that, I was sure it did.
@jasonli1060
@jasonli1060 2 жыл бұрын
we love good content
@getachewsharew5904
@getachewsharew5904 Жыл бұрын
Great thanks bro.
@SuperCoderFromScratch
@SuperCoderFromScratch Жыл бұрын
Thanks !!
@antonpotuzhniy2995
@antonpotuzhniy2995 2 жыл бұрын
so so well explained
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
Thanks so much for the feedback!
@RWJ190
@RWJ190 3 жыл бұрын
hey, can you please upload the source code ?
@SuperCoderFromScratch
@SuperCoderFromScratch 3 жыл бұрын
Sure can. Check out the github: github.com/CoderFromScratch/json-in-java-tutorial . Is this the droid you are looking for?
@mrnikhilnike
@mrnikhilnike 3 жыл бұрын
Thanks Helped a lot
@SuperCoderFromScratch
@SuperCoderFromScratch 3 жыл бұрын
Hey Nikhil, really glad it helped!
@JesusGil90
@JesusGil90 3 жыл бұрын
cool i liked the testing lesson
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
Glad you liked it!
@thatsdeep7058
@thatsdeep7058 2 жыл бұрын
Thank you for speaking english
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
:-D I can also do it in Portuguese!
@whosgonnacarrythelogsndboats
@whosgonnacarrythelogsndboats 3 жыл бұрын
{ video: { liked: true, subscribed: true, shared: true, rating: "Awesome" } }
@kamikaze9785
@kamikaze9785 3 жыл бұрын
U missed ""
@GeorgeSukFuk
@GeorgeSukFuk 7 ай бұрын
No
@sanketdobariya6948
@sanketdobariya6948 3 жыл бұрын
video is good but use light theme because many a times its difficult to watch
@SuperCoderFromScratch
@SuperCoderFromScratch 3 жыл бұрын
Thanks so much for the feedback! I'll try to keep that in mind in the following videos !
@Maros554
@Maros554 11 ай бұрын
Thanks
@cllanoe
@cllanoe 4 жыл бұрын
Excellent
@SuperCoderFromScratch
@SuperCoderFromScratch 4 жыл бұрын
Thank you so much 😀
@260Lipe
@260Lipe 3 жыл бұрын
My god so much work for a JSON :(
@SuperCoderFromScratch
@SuperCoderFromScratch 2 жыл бұрын
Not really, just if you want to map json objects to pojos. If you don't need or want to do that, there are other ways.
@catlord69
@catlord69 3 жыл бұрын
You dont have to type the main method, just type main and intellij creates it for you !
@SuperCoderFromScratch
@SuperCoderFromScratch 3 жыл бұрын
Oh yes :) Thanks for the tip. Its one of those things I already do automatically. Creating a main method is not something I do on a regular basis, so didn't know about that shortcut.
@catlord69
@catlord69 3 жыл бұрын
@@SuperCoderFromScratch handy one for sure :)
@ragnarlothbrok367
@ragnarlothbrok367 Жыл бұрын
Too complicated, overkill
@SuperCoderFromScratch
@SuperCoderFromScratch Жыл бұрын
Thanks for the feedback!
@ruqersa1066
@ruqersa1066 Жыл бұрын
still worth it for eclipse ?
@SuperCoderFromScratch
@SuperCoderFromScratch 3 ай бұрын
Sure ... it is just an IDE. You can do this on Notepad if you want. Think of eclipse and intellij as text editors on steroids.
@ynverxe2755
@ynverxe2755 3 жыл бұрын
pollo
@SuperCoderFromScratch
@SuperCoderFromScratch 3 жыл бұрын
Hummmm Water Pollo ?
@GeorgeSukFuk
@GeorgeSukFuk 7 ай бұрын
Marco!
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 832 М.
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
How To Focus On The Right Problems
16:57
Y Combinator
Рет қаралды 37 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,3 МЛН
What is mathematical thinking actually like?
9:44
Benjamin Keep, PhD, JD
Рет қаралды 11 М.
Java Functional Programming | Full Course
2:22:15
Amigoscode
Рет қаралды 581 М.
Parsing Json in Java Tutorial - Part 3: More complex Mappings
14:41
CoderFromScratch
Рет қаралды 12 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН