@simplyhexagonal/json-expand
v1.0.6
Published
A TypeScript library for expanding flat JSON objects into nested structures based on dot-notation keys.
Downloads
15
Readme
@simplyhexagonal/json-expand
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:
- Buying me a coffee ☕
- Supporting Simply Hexagonal on Open Collective 🏆
- Starring this repo on Github 🌟
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):
License
Copyright (c) 2021-Present Exec Contributors. Licensed under the Apache License 2.0.