znai
znai copied to clipboard
Include in include-json to preserve structure
For example, if the json is:
{
a: b,
c: {
d: e,
f: g
}
}
and you include c.d, you currently get d: e. Would be nice to optionally preserve the structure and return:
{
c: {
d: e
}
}
@tsiq-karold would something like encloseInObject: true work or would you prefer it to be implicitly deduced? I.e. if the parent is the array, then enclose in []?
I'm ok with encloseInObject.