Steven 9af5cff974 $.parseJSON should return any instead of Object
Here is my test:
```js
var i = JSON.parse('1');
var a = JSON.parse('[1]');
var o = JSON.parse('{"foo":"bar"}');
var s = JSON.parse('"string"');
var n = JSON.parse('null');

i instanceof Object; // false
a instanceof Object; // true
o instanceof Object; // true
s instanceof Object; // false
n instanceof Object; // false
```

JSON.parse returns the `any` type so I think this method should do the same.

More of the discussion regarding this pull request can be found on the original commit 8c23d04a5b

https://github.com/borisyankov/DefinitelyTyped/commit/8c23d04a5b4a0505df042a82be90f95adff02d87
2014-05-14 18:00:49 -07:00
2014-01-09 16:39:18 +04:00
2014-03-05 11:51:01 +02:00
2014-05-12 14:45:19 +09:00
2013-10-03 22:23:35 +09:00
2014-03-23 15:50:05 +09:00
2014-05-11 11:22:03 +09:00
2014-04-24 17:45:31 -07:00
2014-04-24 17:45:31 -07:00
2014-01-24 00:22:06 +01:00
2014-04-21 01:52:28 +02:00
2014-03-16 19:36:20 +01:00
2014-01-24 00:22:06 +01:00
2014-04-13 16:31:17 +02:00
2014-05-11 11:22:03 +09:00
2014-05-02 23:00:30 +10:00
2013-08-07 16:59:39 +03:00
2014-05-12 16:39:46 +09:00
2014-04-13 23:17:54 +10:00
2014-01-24 00:22:06 +01:00
2014-01-24 00:22:06 +01:00
2014-01-02 16:34:52 +09:00
2014-04-28 18:00:42 +04:00
2014-02-26 14:13:17 +09:00
2013-11-30 21:48:36 +08:00
2013-12-19 14:48:32 +04:00
2014-04-10 19:07:43 +09:00
2013-10-03 11:23:38 +09:00
2014-04-18 12:15:24 +02:00
2014-01-24 00:22:06 +01:00
2014-04-29 00:05:38 +02:00
2014-02-26 10:01:00 +09:00
2014-04-01 00:36:35 +02:00
2014-01-24 18:51:21 +01:00
2013-11-20 14:20:02 +09:00
2014-01-24 00:19:24 +01:00
2013-12-24 11:08:54 +09:00
2014-01-24 00:19:24 +01:00
2014-05-05 03:38:57 +03:00
2014-01-24 18:51:21 +01:00
2013-05-25 18:08:56 +03:00
2014-01-24 12:53:59 +01:00
2014-02-26 17:25:44 +09:00
2014-01-24 18:51:21 +01:00
2014-04-24 17:45:31 -07:00
2014-04-18 00:03:04 +09:00
2014-01-02 16:34:52 +09:00
2014-01-24 00:19:24 +01:00
2013-12-19 15:33:09 +04:00
2014-04-02 15:08:22 +09:00
2014-01-09 12:29:17 +04:00
2014-01-09 12:29:17 +04:00
2014-04-15 14:14:37 +02:00
2014-01-24 00:19:24 +01:00
2014-01-25 01:08:33 +01:00
2014-01-24 00:19:24 +01:00
2014-01-25 01:08:33 +01:00
2013-01-17 20:03:30 +02:00
2014-01-24 18:51:21 +01:00
2014-04-28 18:32:37 +02:00
2014-04-16 14:52:40 +01:00
2014-04-24 17:41:01 +02:00
2014-04-24 17:45:31 -07:00
2014-03-13 15:52:40 +01:00
2013-11-08 23:36:00 +09:00
2013-12-18 20:13:50 +04:00
2013-11-04 14:25:14 -08:00
2014-01-27 14:16:46 -05:00
2014-01-24 18:51:21 +01:00
2013-09-19 23:21:43 +09:00
2014-02-23 16:50:26 -05:00
2014-01-24 00:55:00 +01:00
2014-01-24 20:23:13 +01:00
2014-01-24 00:55:00 +01:00
2014-01-24 20:23:13 +01:00
2014-01-24 18:51:21 +01:00
2014-03-07 11:51:54 -03:30
2013-12-06 22:36:06 +00:00
2014-01-24 00:55:00 +01:00
2014-01-16 06:27:06 +01:00
2014-04-26 10:37:50 +09:00
2014-04-01 01:41:23 +02:00
2014-04-01 00:37:42 +02:00
2014-01-24 00:55:00 +01:00
2014-01-24 00:55:00 +01:00
2014-04-04 18:24:01 +09:00
2014-01-02 16:34:52 +09:00
2014-05-08 23:40:36 +02:00
2013-08-07 16:59:39 +03:00
2014-01-24 01:19:01 +01:00
2014-04-24 17:45:31 -07:00
2014-01-24 18:51:21 +01:00
2014-02-23 10:28:13 -05:00
2014-03-07 19:01:24 +01:00
2014-01-25 01:08:33 +01:00
2014-04-29 06:12:02 -07:00
2014-01-24 01:19:01 +01:00
2014-02-21 15:03:21 +01:00
2014-04-28 23:42:21 +02:00
2014-05-04 20:16:10 -04:00
2014-01-24 01:19:01 +01:00
2014-04-28 23:55:46 +02:00
2014-05-11 11:45:26 +02:00
2014-04-24 17:45:31 -07:00
2014-01-27 21:40:20 -05:00
2013-12-22 15:47:56 -08:00
2014-04-20 16:42:53 +09:00
2014-04-01 00:49:55 +02:00
2014-04-01 00:36:47 +02:00
2014-05-01 19:41:46 +09:00
2013-11-11 22:31:21 +09:00
2014-04-28 22:00:50 +02:00
2014-04-28 17:08:47 +02:00
2014-01-24 18:51:21 +01:00
2014-01-24 01:19:01 +01:00
2014-05-11 11:22:03 +09:00
2013-11-06 21:14:15 +11:00
2014-04-01 00:36:25 +02:00
2014-01-24 18:51:21 +01:00
2014-01-24 01:56:27 +01:00
2014-04-01 20:58:33 +02:00
2014-04-06 11:59:54 +08:00
2014-04-04 12:26:32 +09:00
2014-03-15 19:00:36 +09:00
2014-03-15 19:00:36 +09:00
2013-08-07 18:02:05 +03:00
2014-01-07 16:02:07 +01:00
2014-01-24 01:56:27 +01:00
2013-11-14 01:50:40 -02:00
2014-03-29 12:45:09 +02:00
2014-04-28 18:32:37 +02:00
2014-01-02 16:34:52 +09:00
2013-09-02 20:07:31 +01:00
2014-04-27 10:19:26 +01:00
2014-01-02 16:34:52 +09:00
2014-02-20 16:58:11 +00:00
2014-01-27 03:31:44 +01:00
2014-01-24 18:51:21 +01:00
2014-04-03 13:36:36 +09:00
2014-02-05 12:48:22 +09:00
2014-02-26 10:41:42 -03:00
2014-05-11 11:22:03 +09:00
2014-02-25 18:23:15 -05:00
2014-03-23 20:08:42 +00:00
2014-02-16 15:21:15 +00:00
2013-08-07 16:59:39 +03:00
2013-11-29 15:25:31 +09:00
2014-03-02 10:45:33 +01:00
2013-11-19 01:40:09 -08:00
2014-01-24 01:56:27 +01:00
2014-02-26 17:45:18 +09:00
2014-04-04 11:20:48 +02:00
2014-03-27 22:30:08 +01:00
2014-04-28 23:48:34 +02:00
2014-01-24 02:59:02 +01:00
2014-02-28 20:27:33 +01:00
2013-12-20 14:14:06 +04:00
2013-08-07 16:59:39 +03:00
2014-04-23 14:26:24 +02:00
2014-01-27 03:34:54 +01:00
2014-01-25 01:08:33 +01:00
2014-03-27 13:25:37 +08:00
2014-01-24 02:59:02 +01:00
2014-01-24 02:59:02 +01:00
2014-04-03 09:31:52 +09:00
2013-09-11 16:47:31 +03:00
2014-02-25 16:32:43 -08:00
2013-12-20 14:17:53 +04:00
2013-10-03 11:23:38 +09:00
2014-01-24 18:51:21 +01:00
2014-04-01 21:07:11 +02:00
2014-02-24 11:48:00 +09:00
2014-01-24 02:59:02 +01:00
2014-01-25 01:08:33 +01:00
2013-11-14 20:21:09 +11:00
2012-12-26 09:28:18 +01:00
2014-04-23 13:45:09 +02:00

DefinitelyTyped Build Status

The repository for high quality TypeScript type definitions.

For more information see the definitelytyped.org website.

Usage

Include a line like this:

/// <reference path="jquery.d.ts" />

Contributions

DefinitelyTyped only works because of contributions by users like you!

Please see the contribution guide on how to contribute to DefinitelyTyped.

How to get the definitions

List of definitions

Requested definitions

Here is an updated list of definitions people have requested.

Licence

This project is licensed under the MIT license.

Copyrights on the definition files are respective of each contributor listed at the beginning of each definition file.

Analytics

S
Description
The repository for high quality TypeScript type definitions.
Readme MIT
98 MiB
Languages
TypeScript 100%