PHP Fatal error: Uncaught exception 'JMS\Serializer\Exception\InvalidArgumentException' with message 'Expected either an integer representing one of the JSON_ constants, or a string of the constant itself.' in /var/www/mobilegolfplan.com/vendor/jms/serializer-bundle/JMS/SerializerBundle/DependencyInjection/Configuration.php:142\nStack trace:\n#0 [internal function]: JMS\SerializerBundle\DependencyInjection\{closure}(Array)\n#1 /var/www/mobilegolfplan.com/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php(229): call_user_func(Object(Closure), Array)\n#2 /var/www/mobilegolfplan.com/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/BaseNode.php(254): Symfony\Component\Config\Definition\Builder\{closure}(Array)\n#3 /var/www/mobilegolfplan.com/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/ArrayNode.php(308): Symfony\Component\Config\Definition\BaseNode->normalize(Array)\n#4 /var/www/mobilegolfplan.com/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/BaseNode in /var/www/mobilegolfplan.com/vendor/jms/serializer-bundle/JMS/SerializerBundle/DependencyInjection/Configuration.php on line 142
I tried install a project in production server and i got error. PHP json extension installed and enabled. If i want try composer install, i was seeing that error , again, again and again.
How i fix this problem ?