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

preview_player
Показать описание
Java Tutorial showing you how to parse Simple Json String into POJO Objects.

We'll be using:
Рекомендации по теме
Комментарии
Автор

Really liked the way you teach the topic with test cases with the best industry level practices.

parildoshi
Автор

This is such a good video, Idk why people didnt comment ques and ans instead of all that.

MrKrishnasinghal
Автор

Brilliant first part to the tutorial! Great work!

mariumbegum
Автор

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

nirajchowdhary
Автор

Great video, thank you. DeltaJSON is really useful if you are working with JSON, it does compare, merge and graft.

markthomas
Автор

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

JustinDouglas-jm
Автор

Thank you for making this video, found it very informative.

roary
Автор

{
"video_rating": "amazing",
}

kamil
Автор

If json file contains any nonascii character like a french letter 'e how to parse it throws exception

mks
Автор

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?

bahaabadr
Автор

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.

unfinishedsentenc
Автор

Thanks man, you did really a good job

yaroslavprozorov
Автор

hey, can you please upload the source code ?

RWJ
Автор

{
video: {
liked: true,
subscribed: true,
shared: true,
rating: "Awesome"
}
}

whosgonnacarrythelogsndboats
Автор

video is good but use light theme because many a times its difficult to watch

sanketdobariya
Автор

You dont have to type the main method, just type main and intellij creates it for you !

catlord