Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ class Json extends DataParserPluginBase implements ContainerFactoryPluginInterfa ...@@ -54,7 +54,7 @@ class Json extends DataParserPluginBase implements ContainerFactoryPluginInterfa
// Otherwise, we're using xpath-like selectors. // Otherwise, we're using xpath-like selectors.
$selectors = explode('/', trim($this->itemSelector, '/')); $selectors = explode('/', trim($this->itemSelector, '/'));
foreach ($selectors as $selector) { foreach ($selectors as $selector) {
if (!empty($selector)) { if (!empty($selector) || $selector === '0') {
$source_data = $source_data[$selector]; $source_data = $source_data[$selector];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment