json - PHP 7.1 json_decode() undefined

900

i'm try to use composer.But returnFatal error: Uncaught Error: Call to undefined function Composer\Console\json_decode() in /usr/share/php/Composer/Console/Application.php:145 I'm using ubuntu 16.04. and php 7.1.

`apt-get install php7.1-json` -> installed

if i execute php -m command no Json in return list . /etc/php/7.1/mods-available/ folder have not anyone .ini file.And i added extension=json.so to php.ini file but did not work

EDIT

etc/php tree

├── 7.0
│   └── apache2
│       └── conf.d
└── 7.1
    ├── apache2
    │   └── php.ini
    └── mods-available

People are also looking for solutions to the problem: php - How to create a method where all crud operation will perform in codeigniter

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.