PHP Classes
elePHPant
Icontem

Can not use my json

Recommend this page to a friend!

      PHP JSON Query  >  All threads  >  Can not use my json  >  (Un) Subscribe thread alerts  
Subject:Can not use my json
Summary:Can not use my json
Messages:1
Author:moi moi
Date:2019-09-10 13:52:24
 

 


  1. Can not use my json   Reply   Report abuse  
moi moi - 2019-09-10 13:52:24
Hello

i use this code on my site :

$content = file_get_contents("php://input");
$uu=json_decode($content);

i just added that :

$jsonq = new Jsonq($content);

The json_decode works fine

But for the jsonq, i get this error.

( ! ) Fatal error: Uncaught Nahid\JsonQ\Exceptions\InvalidJsonException: Invalid JSON format in E:\wamp64\www\ga\vendor\nahid\jsonq\src\Jsonq.php on line 30
( ! ) Nahid\JsonQ\Exceptions\InvalidJsonException: Invalid JSON format in E:\wamp64\www\ga\vendor\nahid\jsonq\src\Jsonq.php on line 30

Someone know what to do ?

Thank you.