PHP Classes

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:2
Author:moi moi
Date:2019-09-10 13:52:24
 

  1. Can not use my json   Reply   Report abuse  
Picture of moi moi 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.

  2. Re: Can not use my json   Reply   Report abuse  
Picture of Nahid Bin Azhar Nahid Bin Azhar - 2019-09-30 17:53:37 - In reply to message 1 from moi moi
share your json data