flat-to-nested-js icon indicating copy to clipboard operation
flat-to-nested-js copied to clipboard

Support for if parent definition is within nested object.

Open jungalwala opened this issue 7 years ago • 1 comments

I have an objects with a layout like:

{
  theId: foobar
  data: {
              parent_id: bob
              moredata: baz
             }
}

Will this support the idea that the parent_id is within the structure? I tried: flatToNested = new FlatToNested( { id: 'theid', parent: 'data.parent_id' } );

jungalwala avatar Feb 19 '18 19:02 jungalwala

Hi,

Currently that's not supported, it is related to what was discussed in issue #5 but I never got to implement it.

joaonuno avatar Feb 22 '18 09:02 joaonuno