JSON APi Compilation Error


After installing Json Wordpress Plugin im getting the following error…

Warning: preg_match(): Compilation failed: range out of order in character class at offset 33 in /home1/newsmg7m/public_html/wp-content/plugins/json-api/singletons/api.php on line 294

and here is the code

function check_directory_for_controllers($dir, &$controllers) {
$dh = opendir($dir);
while ($file = readdir(dh)) { if (preg_match('/(.+)\.php/i’, $file, $matches)) {
$src = file_get_contents("$dir/$file");
if (preg_match("/class\s+JSON_API_{$matches[1]}_Controller/i", $src)) {
$controllers[] = $matches[1];

for creating an android app i tried to install this plugin. but after installing app not able fetch the content. and on wordpress dashboard plugin shows the above error


This forum is for discussing the http://jsonapi.org/ specification; we can’t help you. Sorry!