Thanks in advance,
Rob
It's been a long time since I've used PHP, are you using whatever
JSON-parsing it has natively or are you using some library? That is
the most likely culprit.
-James
> --
> You received this message because you are subscribed to the Google Groups "Open State Project" group.
> To post to this group, send email to fifty-sta...@googlegroups.com.
> To unsubscribe from this group, send email to fifty-state-pro...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fifty-state-project?hl=en.
>
>
From php's json_decode manual page: http://php.net/manual/en/function.json-decode.php#example-3320
"Accessing elements within an object that contain characters not
permitted under PHP's naming convention (e.g. the hyphen) can be
accomplished by encapsulating the element name within braces and the
apostrophe."
<?php
$json = '{"foo-bar": 12345}';
$obj = json_decode($json);
print $obj->{'foo-bar'}; // 12345
?>
Similarly, $leg->{"+city"} should de-reference correctly.
hth,
Shane