Commit 0a1f9752 authored by arthur_lorenz's avatar arthur_lorenz Committed by Lucas Hedding
Browse files

#250 '0' key should not be skipped.

parent c8bf9595
......@@ -54,7 +54,7 @@ class Json extends DataParserPluginBase implements ContainerFactoryPluginInterfa
// Otherwise, we're using xpath-like selectors.
$selectors = explode('/', trim($this->itemSelector, '/'));
foreach ($selectors as $selector) {
if (!empty($selector)) {
if (!empty($selector) || $selector === '0') {
$source_data = $source_data[$selector];
}
}
......
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