Zero index in Lua Tables is ignored by yaml.encode()
Bug #1229721 reported by
Roman Tsisyk
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.