Update index.php

Forgot that json_decode needs optional argument at the end to parse into a PHP array instead of an object.