O'Reilly logo

JavaScript JSON Cookbook by Ray Rischpater

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Querying JSON with JSONPath and LINQ

Sometimes, all you may want to do is extract a field or two from some JSON-formatted data, rather than parse a JSON blob into a class and work with all of its fields. With JSONPath or LINQ (using Json.NET), you can do just that. Here, you'll find the following recipes:

  • Using the JSONPath dot-notation to query JSON documents
  • Using JSONPath bracket-notation to query JSON documents
  • Using JSONPath scripting to construct more complicated queries
  • Using JSONPath in your web application
  • Using JSONPath in your Node.js application
  • Using JSONPath in your PHP application
  • Using JSONPath in your Python application
  • Using JSONPath in your Java application
  • Using JSONPath with SelectToken to query for JSONPath expressions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required