newsdev / archieml-js

JavaScript parser for the Archie Markup Language (ArchieML)
http://archieml.org
Other
206 stars 19 forks source link

Arrays should override strings that already exist at a key #6

Closed minikomi closed 9 years ago

minikomi commented 9 years ago

Test case:

a.b:c

[a.b]
d:e
[]

Observed:

{
  "a": {
    "b": "c"
  }
}

Expected(?):

{
  "a": {
    "b": [
      {
        "d": "e"
      }
    ]
  }
}
abstrctn commented 9 years ago

Good catch! This will be fixed in v0.1.2.