Skip to content

Tag: json

Invalid JSON parsing using PHP

I’m pulling a JSON feed that is invalid JSON. It’s missing quotes entirely. I’ve tried a few things, like explode() and str_replace(), to get the string looking a little bit more like valid JSON, but with an associate JSON string inside, it generally gets screwed up. Here’s an example: Are there any JSON parsers for php out there that can

Access JSON object name in PHP

I have the following JSON: { “nickname”: “xadoc”, “level”: 4, “loc”: “Tulsa, OK, USA”, “score”: 122597, “money”: 29412.5, “streetNum”: 8, “streets”: { “-91607259/387798111”: { …