Skip to content

A TypeScript library for expanding flat JSON objects into nested structures based on dot-notation keys.

Notifications You must be signed in to change notification settings

simplyhexagonal/json-expand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@simplyhexagonal/json-expand

npm GitHub Workflow Status License

A TypeScript library for expanding flat JSON objects into nested structures based on dot-notation keys.

Usage

import expand from '@simplyhexagonal/json-expand';

const input = JSON.stringify({
  "en.title": "Hello World",
  "en.description": "This is a description"
});

const output = expand(input);
console.log(output);

Output

{
  "en": {
    "title": "Hello World",
    "description": "This is a description"
  }
}

Open Source Notice

This project is open to updates by its users. We ensure that PRs are relevant to the community. In other words, if you find a bug or want a new feature, please help us by becoming one of the contributors ✌️! See the contributing section below.

Like this module? ❤

Please consider:

Contributing

Yes, thank you! This plugin is community-driven, most of its features are from different authors. Please update the docs and tests and add your name to the exec.json file.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Jean Lescure

🚧 💻 📓 ⚠️ 💡 📖

License

Copyright (c) 2021-Present Exec Contributors.
Licensed under the Apache License 2.0.

About

A TypeScript library for expanding flat JSON objects into nested structures based on dot-notation keys.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published