I'm trying to return array from this json
$jsondata = "{ 'map' : {'center': {'lat': 24.68599, 'lng': 46.7026558},
'zoom': 16}, 'marker': { 'position': {'lat': 24.68599, 'lng': 46.7026558 },
'icon': '<?php bloginfo('stylesheet_directory'); ?
>/resources/images/temp/marker.png' } }";
$result = json_decode($jsondata, true);
The result is always null. Can someone tell me why and how to fix it? I suppose single quotes have to be replaced with double but that didn't work anyway.