CodeGym /Courses /Java Collections /Tasks | Level 3 | Lesson 5

Tasks | Level 3 | Lesson 5

Java Collections
Level 3, Lesson 5
Available
14
Task
Java Collections, level 3, lesson 5
Locked
My first serialization into JSON
My first serialization into JSON
8
Task
Java Collections, level 3, lesson 5
Locked
My second serialization into JSON
My second serialization into JSON
14
Task
Java Collections, level 3, lesson 5
Locked
Deserializing a JSON object
Deserializing a JSON object
14
Task
Java Collections, level 3, lesson 5
Locked
Using JSON to convert from one class to another
Using JSON to convert from one class to another
14
Task
Java Collections, level 3, lesson 5
Locked
Using JSON to convert from one class to another
Using JSON to convert from one class to another
14
Task
Java Collections, level 3, lesson 5
Locked
Strange mistake
Strange mistake
14
Task
Java Collections, level 3, lesson 5
Locked
Serializing a zoo
Serializing a zoo
8
Task
Java Collections, level 3, lesson 5
Locked
Serializing a date into JSON
Serializing a date into JSON
Comments (7)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
MaGaby2280 Level 41, Guatemala City, Guatemala
3 June 2021
This is a very interesting link for learning more about Jackson. My suggestion is to read it before doing the tasks... https://www.baeldung.com/jackson It also contains great examples This link contains all the files you need to download to use Jackson in these tasks https://mvnrepository.com/artifact/com.fasterxml.jackson.core
Lisa Level 41
1 January 2022
The CG explanations are a joke. But the baeldung and jenkov tutorials are OK and all one needs to understand the topic and solve the tasks. Btw., Jackson installation via maven is a breeze. (IntelliJ -> project structure -> libraries -> add lib (the +)) and chose maven. Search for com.fasterxml, chose to install sources, docs and annotations and select the latest versions of core and core.databind (you can select an older version for the CG tasks later on in IntelliJ settings). To change the version select the library (eg. fasterxml.jackson.core) click edit and select your desired version In modules dependencies the two libraries need to be listed (with scope compile), if not, just add them
Alexander Shtunder Level 41, San Francisco, USA
27 July 2020
I think it will be helpful. Link to download the required Jackson libraries: link
Elvis Lee Level 41, Aurora, United States
2 February 2020
Using Json to convert one class to other class, use objectMapper.disable(MapperFeature.USE_ANNOTATIONS) before writeValue and readValue
Juan Ma Level 1, Arauca, Colombia
30 May 2020
You can use the replaceFirst(regex, string) string method as well.
Senned Level 41, Azov, Russia
5 December 2019
Read more about Jackson annotations before start!
Almaz Temirkanov Level 24, Bishkek, Kyrgyzstan
14 November 2019
#2 @JsonProperty("over")