nahid / jsonq

A PHP query builder for JSON
Creative Commons Zero v1.0 Universal
872 stars 105 forks source link

#HELP How to Use the "Or from a JSON String" #62

Closed aboutdevz closed 3 years ago

aboutdevz commented 3 years ago

Sorry before, im a beginner. i dont know how to use it from JSON string. like this $json->json('{"id": 1, "name": "Nahid"}');

when i use like this $q = new Jsonq();
$q = $q->json([json string]); but function not found.

can you help me show the full code?

aboutdevz commented 3 years ago

Sorry, i didnt fully read the code. there is a helper function wich is. jsonq($JSON_data);

pass in the json data and it works