Really liked the way you teach the topic with test cases with the best industry level practices.
@SuperCoderFromScratch2 жыл бұрын
Thanks so much !
@MrKrishnasinghal2 жыл бұрын
This is such a good video, Idk why people didnt comment ques and ans instead of all that.
@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 Жыл бұрын
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 Жыл бұрын
@@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.
@mariumbegum73252 жыл бұрын
Brilliant first part to the tutorial! Great work!
@SuperCoderFromScratch2 жыл бұрын
Thanks so much !
@bahaabadr4392 жыл бұрын
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?
@SuperCoderFromScratch2 жыл бұрын
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 ?
@roary40924 жыл бұрын
Thank you for making this video, found it very informative.
@SuperCoderFromScratch4 жыл бұрын
Hey @Roary529 !!! Thanks so much for the feedback!
@dray.mp48394 жыл бұрын
L ;-;
@mks59883 жыл бұрын
If json file contains any nonascii character like a french letter 'e how to parse it throws exception
@SuperCoderFromScratch3 жыл бұрын
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.
@kamil34094 жыл бұрын
{ "video_rating": "amazing", }
@SuperCoderFromScratch4 жыл бұрын
Thanks man !
@nirajchowdhary73722 жыл бұрын
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
@SuperCoderFromScratch2 жыл бұрын
You are absolutly correct.
@ChazWinter Жыл бұрын
It always bothers me when people switch them around hahaha
@blackheat8 Жыл бұрын
You’re a tremendous help. Thank you!!
@SuperCoderFromScratch3 ай бұрын
You are so welcome! Thanks for the feedback!
@markthomas96412 жыл бұрын
Great video, thank you. DeltaJSON is really useful if you are working with JSON, it does compare, merge and graft.
@yaroslavprozorov Жыл бұрын
Thanks man, you did really a good job
@SuperCoderFromScratch3 ай бұрын
Thanks so much for the feedback, I really do appreciate it!
@unfinishedsentenc98643 жыл бұрын
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.
@SuperCoderFromScratch2 жыл бұрын
Than ks for the feedback! Will work on this !
@ibrahimothman3662 жыл бұрын
can't I use intellij builder ?
@SuperCoderFromScratch2 жыл бұрын
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.
@ibrahimothman3662 жыл бұрын
@@SuperCoderFromScratch ok
@sebon11 Жыл бұрын
Nice tutorial, thank you dude
@SuperCoderFromScratch Жыл бұрын
Thank you! For the feedback and boost!
@mayukhbhattacharya2304 Жыл бұрын
Learned a lot
@SuperCoderFromScratch Жыл бұрын
Thank so much
@zr602 жыл бұрын
doesn't work for collections
@SuperCoderFromScratch2 жыл бұрын
Really ? I need to look at that, I was sure it did.
@jasonli10602 жыл бұрын
we love good content
@getachewsharew5904 Жыл бұрын
Great thanks bro.
@SuperCoderFromScratch Жыл бұрын
Thanks !!
@antonpotuzhniy29952 жыл бұрын
so so well explained
@SuperCoderFromScratch2 жыл бұрын
Thanks so much for the feedback!
@RWJ1903 жыл бұрын
hey, can you please upload the source code ?
@SuperCoderFromScratch3 жыл бұрын
Sure can. Check out the github: github.com/CoderFromScratch/json-in-java-tutorial . Is this the droid you are looking for?
video is good but use light theme because many a times its difficult to watch
@SuperCoderFromScratch3 жыл бұрын
Thanks so much for the feedback! I'll try to keep that in mind in the following videos !
@Maros55411 ай бұрын
Thanks
@cllanoe4 жыл бұрын
Excellent
@SuperCoderFromScratch4 жыл бұрын
Thank you so much 😀
@260Lipe3 жыл бұрын
My god so much work for a JSON :(
@SuperCoderFromScratch2 жыл бұрын
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.
@catlord693 жыл бұрын
You dont have to type the main method, just type main and intellij creates it for you !
@SuperCoderFromScratch3 жыл бұрын
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.
@catlord693 жыл бұрын
@@SuperCoderFromScratch handy one for sure :)
@ragnarlothbrok367 Жыл бұрын
Too complicated, overkill
@SuperCoderFromScratch Жыл бұрын
Thanks for the feedback!
@ruqersa1066 Жыл бұрын
still worth it for eclipse ?
@SuperCoderFromScratch3 ай бұрын
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.