> For the complete documentation index, see [llms.txt](https://soufatn.gitbook.io/rxjs-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://soufatn.gitbook.io/rxjs-book/summary/rxjs_bindings/dom/ajax/get_json.md).

# get\_Json

[#](/rxjs-book/summary/rxjs_bindings/dom/ajax/get_json.md#rxdomrequestgetjsonurl)[Ⓢ](https://github.com/Reactive-Extensions/RxJS-DOM/blob/master/rx.dom.js#L259-L264) \[Ⓣ]\[1]

Creates an observable sequence from JSON from an Ajax request.

## Arguments

1. `url` *(String)*: A string of the URL to make the Ajax call.

## Returns

*(Observable)*: The observable sequence which contains the parsed JSON.

## Example

```javascript
Rx.DOM.Request.get('/products')
    .subscribe(
        function (data) {
            // Log data length
            console.log(data.length);
        },
        function (err) {
            // Log the error
        }
    );
```
