json - PHP Fatal error: Call to undefined function json_decode() in Xampp -


i'm using xampp run php file using brackets. got error:

php fatal error: call undefined function json_decode() in xampp

i don't know if related checked php info file , there no disabled files. in json section says support enabled, json version 1.4.0. in ini file searched json couldn't find anything.

how can resolve error?

if on ubuntu use following command in command line shell

sudo apt-get install php5-json 

if on windows, edit php.ini , enable json extension.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -