hughsk / hughsk/flat

Possible to keep parent key

Open
#116 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Hi I want to keep parent key and all its children as stringified JSON, is it possible to do that with flatten?
------------------------------
Example
```
{
a : 'blah',
data : {
a : 'sth',
b: 'sth'
}
}
```
expected output
```
{
a: 'blah',
data: `{
a: sth,
b: sth
}`,
data.a = sth,
data.b = sth
}
```

I really appreciate if you can guide me here? Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.