Created
July 24, 2008 02:36
-
-
Save anonymous/2011 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAW JS: | |
var players = {'234565': {position : 'KR', name : 'Ashley Williams'},'161517': {position : 'KRS', name : 'Amazing Han'},'180396': {position : 'KRS', name : 'Rafael Vinicio'},'319234': {position : 'KRS', name : 'L\'Tydrick Vice'},'291215': {position : 'KRS', name : 'Bull Dozer 2008'},'266455': {position : 'KRS', name : 'Badr Hari'},'262658': {position : 'KRS', name : 'R0BERT GALLERY'},'69387': {position : 'KRS', name : 'Rocket von Gunnar'},'112378': {position : 'KRS', name : 'Buster Butch'},'276792': {position : 'KRS', name : 'Cledus Snow'},'188779': {position : 'KRS', name : 'JAYLEN BURNEY'},'171587': {position : 'K', name : 'David Pino'},'173059': {position : 'KOS', name : 'The Cole Train'},'240098': {position : 'KOS', name : 'McGruff The Police Dog'},'229104': {position : 'KOS', name : 'ManBearPig !!!!'},'305377': {position : 'KOS', name : 'NOOBINATOR SUPREME'},'138920': {position : 'KOS', name : 'Brian Robison'},'258926': {position : 'KOS', name : 'Sigmar Gunnarsson'},'230376': {position : 'KOS', name : 'Ballsy McTestosterone'},'237584': {position : 'KOS', name : 'Aaron Hauss'},'239511': {position : 'KOS', name : 'NoVowels McHrncir'},'135521': {position : 'KOS', name : 'Michael Finley'}}; | |
string I'm trying to parse as JSON: | |
"{'234565': {position : 'KR', name : 'Ashley Williams'},'161517': {position : 'KRS', name : 'Amazing Han'},'180396': {position : 'KRS', name : 'Rafael Vinicio'},'319234': {position : 'KRS', name : 'L\'Tydrick Vice'},'291215': {position : 'KRS', name : 'Bull Dozer 2008'},'266455': {position : 'KRS', name : 'Badr Hari'},'262658': {position : 'KRS', name : 'R0BERT GALLERY'},'69387': {position : 'KRS', name : 'Rocket von Gunnar'},'112378': {position : 'KRS', name : 'Buster Butch'},'276792': {position : 'KRS', name : 'Cledus Snow'},'188779': {position : 'KRS', name : 'JAYLEN BURNEY'},'171587': {position : 'K', name : 'David Pino'},'173059': {position : 'KOS', name : 'The Cole Train'},'240098': {position : 'KOS', name : 'McGruff The Police Dog'},'229104': {position : 'KOS', name : 'ManBearPig !!!!'},'305377': {position : 'KOS', name : 'NOOBINATOR SUPREME'},'138920': {position : 'KOS', name : 'Brian Robison'},'258926': {position : 'KOS', name : 'Sigmar Gunnarsson'},'230376': {position : 'KOS', name : 'Ballsy McTestosterone'},'237584': {position : 'KOS', name : 'Aaron Hauss'},'239511': {position : 'KOS', name : 'NoVowels McHrncir'},'135521': {position : 'KOS', name : 'Michael Finley'}}" | |
What causes problems: | |
{position : 'KRS', name : 'L\'Tydrick Vice'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment