parse-json-object-as-map
Version:
JSON.parse but returns Map instead of Object
23 lines (18 loc) • 1.22 kB
Markdown
<h3 align="center">
parse-json-object-as-map
</h3>
<p align="center">
JSON.parse but returns Map instead of Object
</p>
<p align="center">
<a href="https://npmjs.org/package/parse-json-object-as-map"><img src="https://img.shields.io/npm/v/parse-json-object-as-map.svg?style=flat-square"></a>
<a href="https://circleci.com/gh/christophehurpeau/parse-json-object-as-map"><img src="https://img.shields.io/circleci/project/christophehurpeau/parse-json-object-as-map/master.svg?style=flat-square"></a>
<a href="https://david-dm.org/christophehurpeau/parse-json-object-as-map"><img src="https://david-dm.org/christophehurpeau/parse-json-object-as-map.svg?style=flat-square"></a>
<a href="https://dependencyci.com/github/christophehurpeau/parse-json-object-as-map"><img src="https://dependencyci.com/github/christophehurpeau/parse-json-object-as-map/badge?style=flat-square"></a>
<a href="https://codecov.io/gh/christophehurpeau/parse-json-object-as-map"><img src="https://img.shields.io/codecov/c/github/christophehurpeau/parse-json-object-as-map/master.svg?style=flat-square"></a>
</p>
## Quick example
```js
var parseJSON = require('parse-json-object-as-map');
console.log(parseJSON('{"test": true }'))
```