Talk:Steam Web API: Difference between revisions
Jump to navigation
Jump to search
(Created page with '== Invalid JSON == The API for GetGlobalAchievementPercentagesForApp gives invalid JSON (not detected by JSONLint however). There's an incorrectly encoded UTF-8 character at aro…') |
(More errors) |
||
Line 2: | Line 2: | ||
The API for GetGlobalAchievementPercentagesForApp gives invalid JSON (not detected by JSONLint however). There's an incorrectly encoded UTF-8 character at around character 21,290 of [http://pastebin.com/PT94HA61] (see [http://bugs.php.net/bug.php?id=52262]). This stops it being parsed by JSON libraries (for example, PHP's json_decode). Not sure what character, will stick to XML results for now unless that's affected too. --[[User:Rmasters|Rmasters]] 12:42, 7 July 2010 (UTC) | The API for GetGlobalAchievementPercentagesForApp gives invalid JSON (not detected by JSONLint however). There's an incorrectly encoded UTF-8 character at around character 21,290 of [http://pastebin.com/PT94HA61] (see [http://bugs.php.net/bug.php?id=52262]). This stops it being parsed by JSON libraries (for example, PHP's json_decode). Not sure what character, will stick to XML results for now unless that's affected too. --[[User:Rmasters|Rmasters]] 12:42, 7 July 2010 (UTC) | ||
: These errors are in the XML as well as the JSON for this request so I'll run through them. | |||
: Line 1048, GetGlobalAchievementPercentagesForApp (xml) - Malformed XML | |||
<achievement> | |||
<name> <achievement> | |||
<name>TF_SOLDIER_BUFF_TEAMMATES</name> | |||
<percent>3.999221</percent> | |||
</achievement> | |||
: Line 872 - Strange name? Not a constant like the rest (non parser-breaking) | |||
<achievement> | |||
<name>Sapador e punhalada</name> | |||
<percent>9.451244</percent> | |||
</achievement> | |||
: Line 272 - Empty <name> (more likely a non-printable character) | |||
<achievement> | |||
<name></name> | |||
<percent>19.812321</percent> | |||
</achievement> | |||
: Also got this error but not sure what to do with it | |||
Entity: line 1050: parser error : Input is not proper UTF-8, indicate encoding ! | |||
Bytes: 0xE6 0x4B 0x3C 0x2F | |||
: --[[User:Rmasters|Rmasters]] 13:31, 7 July 2010 (UTC) |
Revision as of 06:31, 7 July 2010
Invalid JSON
The API for GetGlobalAchievementPercentagesForApp gives invalid JSON (not detected by JSONLint however). There's an incorrectly encoded UTF-8 character at around character 21,290 of [1] (see [2]). This stops it being parsed by JSON libraries (for example, PHP's json_decode). Not sure what character, will stick to XML results for now unless that's affected too. --Rmasters 12:42, 7 July 2010 (UTC)
- These errors are in the XML as well as the JSON for this request so I'll run through them.
- Line 1048, GetGlobalAchievementPercentagesForApp (xml) - Malformed XML
<achievement> <name> <achievement> <name>TF_SOLDIER_BUFF_TEAMMATES</name> <percent>3.999221</percent> </achievement>
- Line 872 - Strange name? Not a constant like the rest (non parser-breaking)
<achievement> <name>Sapador e punhalada</name> <percent>9.451244</percent> </achievement>
- Line 272 - Empty <name> (more likely a non-printable character)
<achievement> <name></name> <percent>19.812321</percent> </achievement>
- Also got this error but not sure what to do with it
Entity: line 1050: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE6 0x4B 0x3C 0x2F
- --Rmasters 13:31, 7 July 2010 (UTC)