Комментарии:
still worth it for eclipse ?
Ответить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
Too complicated, overkill
ОтветитьNice tutorial, thank you dude
ОтветитьLearned a lot
ОтветитьGreat thanks bro.
ОтветитьThe video really helped me out but I have one question. I'm able to parse the json when it looks like
{
"title":Coder from Scratch
}
but if the json looks like
{
"titles: [
{
"title1": Coder From Scratch
"title2": CoderFromScratch
}
]
how would I be able to print title1 title2? (oh and sorry if the json isn't formatted correctly, I'm still a bit new to this stuff)
can't I use intellij builder ?
ОтветитьThank you for speaking english
ОтветитьBrilliant first part to the tutorial! Great work!
ОтветитьDamn dude. Less typing and more explaining. 15 minutes in and all you did was create a tiny object passing a string to the object mapper.
ОтветитьThis is such a good video, Idk why people didnt comment ques and ans instead of all that.
Ответить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?
we love good content
Ответитьso so well explained
ОтветитьGreat video, thank you. DeltaJSON is really useful if you are working with JSON, it does compare, merge and graft.
Ответитьdoesn't work for collections
Ответить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
Ответить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.
Ответитьcool i liked the testing lesson
Ответить