From the course: JSON Processing with Java EE
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Find the value of a JSON key
From the course: JSON Processing with Java EE
Challenge: Find the value of a JSON key
(chiming music) - [Instructor] This is your first challenge in the string of the chapter and it is to write the method that traverses a JSON document and retrieves a value of a given key. You should be able to call a method retrieveValue and parser the key name and a JSON string to parse. To make it simple, let's just make it return a value. If the key's value is a string or a number, we don't need to write logic that returns an array or an object. And don't forget, write the appropriate unit tests. The estimated completion time for this task is about 20 minutes.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Introduction to the streaming model2m 43s
-
(Locked)
Parse JSON data6m 47s
-
(Locked)
Write JSON data2m 3s
-
(Locked)
Challenge: Find the value of a JSON key34s
-
(Locked)
Solution: Find the value of a JSON key32s
-
(Locked)
Challenge: Output JSON object to a file22s
-
(Locked)
Solution: Output JSON object to file13s
-
(Locked)
-