Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

empty array causes extra layer of nesting #43

Open
coolaj86 opened this issue Jan 30, 2012 · 0 comments
Open

empty array causes extra layer of nesting #43

coolaj86 opened this issue Jan 30, 2012 · 0 comments

Comments

@coolaj86
Copy link

Unexpected Nesting


---
  - "baz"
  - "qux"
  - "quxx"
  - null
  - true
  - 
    foo: "bar"
    corge: null
    grault: 1
    garply: true
    waldo: "false"
    fred: "undefined"
  - 42
  - 
  - 
    - "hello"
    - "world"

and becomes

[
  "baz",
  "qux",
  "quxx",
  null,
  true,
  {
    "foo": "bar",
    "corge": null,
    "grault": 1,
    "garply": true,
    "waldo": "false",
    "fred": "undefined"
  },
  42,
  [
    [
      "hello",
      "world"
    ]
  ]
]

Expected Behavior


---
  - "baz"
  - "qux"
  - "quxx"
  - null
  - true
  - 
    foo: "bar"
    corge: null
    grault: 1
    garply: true
    waldo: "false"
    fred: "undefined"
  - 
    - "hello"
    - "world"
  - 42
  - 

and becomes

[
  "baz",
  "qux",
  "quxx",
  null,
  true,
  {
    "foo": "bar",
    "corge": null,
    "grault": 1,
    "garply": true,
    "waldo": "false",
    "fred": "undefined"
  },
  [
    "hello",
    "world"
  ],
  42,
  null
]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant