Galbar / JsonPath-PHP

A JsonPath implementation in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whitespaces in jsonPath

oschwier opened this issue · comments

What can I do if there are whitespaces within the jsonPath?

Path looks like:

$.Technische Daten.Abmessungen

$res = new JsonObject(myJSONstring);
$res = $res->get($jsonPath);

returns false

Debug Output:

JsonPath::subtreeGet(array('Technische Daten' => array('Abmessungen' => array('Breite in mm' => '300', 'Tiefe in mm' => '580', 'Höhe in mm' => '715', 'Gewicht' => '60 kg'),....

Hi @oschwier, this seems to be a duplicate of #42.

Could check if the solution works for you and, if that is the case, close this issue?

If that doesn't fix it for you, let me know

Ah sorry, missed that issue! Seams to work! Thanks for the quick response!