Skip to content
Snippets Groups Projects
Commit 593b8421 authored by Johannes Haseitl's avatar Johannes Haseitl Committed by Lucas Hedding
Browse files

Issue #2900474 by derhasi, ultimike: JSON is not converted to associative array for non-utf8 data

parent f1f6525c
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ class Json extends DataParserPluginBase implements ContainerFactoryPluginInterfa
// valid utf8 - see http://php.net/manual/en/function.json-decode.php#86997.
if (is_null($source_data)) {
$utf8response = utf8_encode($response);
$source_data = json_decode($utf8response);
$source_data = json_decode($utf8response, TRUE);
}
// Backwards-compatibility for depth selection.
......
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