Video is locked.

Unlock the full course today

Join today to access over 15,000 courses taught by industry experts or purchase this course individually.

Learning Java by Example

Parse REST calls using JSON-P

From the course: Learning Java by Example

Start my 1-month free trial
  • Course details

    Do you learn best by doing? Why not learn Java that way? Learn Java Concepts by Example is a Java cookbook that pairs four Java programming challenges with step-by-step solutions. Julian Robichaux shows how to create command-line applications to search text and access a relational database, a GUI app to display and resize images, and a Java API to access third-party webpage content. By practicing these examples, you'll learn concepts such as regular expressions, arrays, JDBC, JAR files, Swing, Java math, lambdas, and RESTful programming—all within the context of real-world applications.

    Instructor

    • Click here to view Julian Robichaux’s instructor page

      Julian Robichaux

      • Julian Robichaux is a software engineer focused on Eclipse and Java.

        Julian has been a professional programmer in the private sector since the early nineties. His programming career began with BBS software and Clipper-compliant databases, soon moving to the Lotus Notes/Domino platform, followed by writing software and applications for IBM technologies and systems in general. Along the way, Julian has developed websites, and even written a few iPhone apps.

        While he currently works on the MarvelClient product for panagenda, Julian has worked on consulting and development projects for a number of Fortune 500 companies around the US. He is also a frequent speaker at conferences about IBM collaboration systems in the US and Europe. Find him on Twitter @jrobichaux or LinkedIn.

    Skills covered in this course

  • Welcome

    - [Teacher] We have data back from the server, but it's a big string of JSON data. JSON is a very convenient format for web programming because JSON is a native data format for JavaScript. It's much less convenient for Java because we need to parse it. In the next two sections, I'm gonna talk about a few JSON parsing options in Java, and give you an example of how to convert JSON into a Java bean format for portability. To begin with, here's what the JSON data looks like when it comes back from the server. I put this in a text file and included that with the project for easy reference. Without getting too deep into the specifics of the JSON format, the important thing to know is that it's really just a collection of key value pairs. There are curly brackets surrounding groups of pairs. We can think of these as JsonObjects or Java Maps. There are square brackets around arrays of values. We can think of these as Java lists. Starting from top to bottom, you can see we have an array of…

  • 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.

    Download the exercise files for this course. Get started with a free trial today.

  • Download courses and learn on the go

    Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.

    Watch this course anytime, anywhere. Get started with a free trial today.

Contents