NASA Logo, National Aeronautics and Space Administration

JSON with the CDAS RESTful Web Services

Introduction

The following contains additional information concerning the use of JSON with the CDAS web services.

Target Audience

This document assumes that the reader is familar with the CDAS web services and JSON.

Overview

The official interface to the CDAS web services is defined by this page and this XML schema. This is a well defined interface and every effort is made to maintain backward compatibility in future releases. Client developers who want maximum stability should use XML to interface with the CDAS web services. However, JSON is supported as an alternative. Anyone choosing to use JSON should realize that it is less stable and may change in the future. The rest of this document contains some working examples of using JSON with the CDAS web services.

Examples

The following section contains JSON examples of each type of CDAS request. The examples include the following:

CDF Example

The following illustrates an CDAS CDF request. The request entity body is

and the response is

Graph Example

The following illustrates an CDAS graph request. The request entity body is

and the response is

Listing Example

The following illustrates an CDAS listing request. The request entity body is

and the response is

Questions/Comments

Questions or comments concerning these Web services should be sent to CDAS Feedback.

NASA Logo -
	    nasa.gov