<commit_before># changejson

![npm](https://img.shields.io/npm/v/changejson.svg) ![license](https://img.shields.io/npm/l/changejson.svg) ![github-issues](https://img.shields.io/github/issues/SSK001/changejson.svg) 

Function to manipulate JSON for easy access.

[![NPM](https://nodei.co/npm/changejson.png?compact=true)](https://nodei.co/npm/changejson/)

## Features

 - Change the schema of the Json
 - Compare and count's the keys
 - Merge the same keys

## Change the schema of the Json

 - This function will input the object, schema. returned object will be in the schema that is specified.
 - Input: 
   ```
   console.log(JSON.stringify(changeJson.changeSchema(
      {
          'x': 1,
          'y': 2
      },
      ['y','x']
      ),null,' ')<commit_msg>Badges changed<commit_after># changejson

![npm](https://badge.fury.io/js/changejson.svg) ![license](https://img.shields.io/badge/license-MIT-blue.svg) ![github-issues](https://img.shields.io/github/issues/SSK001/changejson.svg) 

Function to manipulate JSON for easy access.

[![NPM](https://nodei.co/npm/changejson.png?compact=true)](https://nodei.co/npm/changejson/)

## Features

 - Change the schema of the Json
 - Compare and count's the keys
 - Merge the same keys

## Change the schema of the Json

 - This function will input the object, schema. returned object will be in the schema that is specified.
 - Input: 
   ```
   console.log(JSON.stringify(changeJson.changeSchema(
      {
          'x': 1,
          'y': 2
      },
      ['y','x']
      ),null,' ')
{'fraction_non_alphanumeric': 0.1561483409238777, 'fraction_numerical': 0.006506180871828237, 'mean_word_length': 3.1793478260869565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3413315', 'n_tokens_mistral': 531, 'n_tokens_neox': 487, 'n_words': 121}