undefined symbol: php_json_decode_ex in Unknown on line 0 – Solr.so in Ubuntu

Make you sure that this line comes before your newly added extension in php.ini

extension=json.so

then add your extension

extension=xyz.so

The order matters