Commit ed72caaf authored by yann300's avatar yann300

empty string is array

parent 6ec87b3c
...@@ -34,7 +34,7 @@ function extractData (item, parent, key) { ...@@ -34,7 +34,7 @@ function extractData (item, parent, key) {
} }
}) })
ret.isArray = true ret.isArray = true
ret.self = parent.isArray ? 'Array' : item.type ret.self = parent.isArray ? '' : item.type
} else if (item.type.indexOf('struct') === 0) { } else if (item.type.indexOf('struct') === 0) {
ret.children = Object.keys((item.value || {})).map(function (key) { ret.children = Object.keys((item.value || {})).map(function (key) {
return {key: key, value: item.value[key]} return {key: key, value: item.value[key]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment