couchdb-compile icon indicating copy to clipboard operation
couchdb-compile copied to clipboard

JSON inside directories get nested inside their name

Open BigBlueHat opened this issue 10 years ago • 1 comments

  • products/
    • laptop.json -- with "_id": "products/laptop"
  • products.json -- with "_id": "products"

The products/laptop document turns out as expected. But the products doc ends up looking like this...

{
  "_id": "products",
  "laptop": {
    "_id": "products/laptop"
  }
}

I poked around a bit, but couldn't quite sort it out. :confused:

Thanks!

BigBlueHat avatar Dec 04 '15 02:12 BigBlueHat

Could you please paste the contents of the files here, so that I can reproduce the issue?

jo avatar Apr 07 '16 22:04 jo