convert-array-json

This package convert json to array and array to json

Usage no npm install needed!

<script type="module">
  import convertArrayJson from 'https://cdn.skypack.dev/convert-array-json';
</script>

README

How to use?

  • JSON:
    const json = { "Teste": true, "Teste2": false };
    const convert = require('convert-array-json');
    .
    .
    convert.convertToJson(json);

  • Array:
    const array = [ "Teste", "Teste2" ];
    const convert = require('convert-array-json');
    .
    .
    convert.convertToArray(array);

@eusouodaniel