Zero index in Lua Tables is ignored by yaml.encode()

Bug #1229721 reported by Roman Tsisyk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tarantool
New
Undecided
Dmitry Simonenko

Bug Description

localhost> t = {}
---
...
localhost> t[0] = 123
---
...
localhost> t[1] = 456
---
...
localhost> t
---
- - 456 <!-- Where is 123?
...
localhost> yaml.encode(t)
---
- '---

  - 456

  ...

'
localhost> box.cjson.encode(t)
---
- '{"0":123,"1":456}' <!-- Good
...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.