bijilsandroid / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

JSONParseError: Unexpected c encountered #147

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
This HttpService call in Flash:

var service:HTTPService = new HTTPService();
service.method = "get";
service.addEventListener(FaultEvent.FAULT, sError);
service.addEventListener(ResultEvent.RESULT, sResult);
service.url = "http://search.twitter.com/search.json?q=@TwitScreens";
service.send();

function sResult(evt:ResultEvent)
{
    trace(evt.result.toString());
    var tweets:JSONObject = new JSONObject(evt.result.toString());
}

Returns this json which causes the Unexpected c encountered:

{"completed_in":0.14,"max_id":101437133696413697,"max_id_str":"10143713369641369
7","next_page":"?page=2{"completed_in":0.14,"max_id":101437133696413697,"max_id_
str":"101437133696413697","next_page":"?page=2&max_id=101437133696413697&q=%40Tw
itScreens","page":1,"query":"%40TwitScreens","refresh_url":"?since_id=1014371336
96413697&q=%40TwitScreens","results":[{"created_at":"Wed, 10 Aug 2011 23:37:51 
+0000","from_user":"OxygenLifestyle","from_user_id":94157386,"from_user_id_str":
"94157386","geo":null,"id":101437133696413697,"id_str":"101437133696413697","iso
_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"ht
tp://a2.twimg.com/profile_images/1195131815/website_normal.jpg","source":"<a 
href="http://paper.li" rel="nofollow">Paper.li</a>","text":"RT @Tristy: 
Tristan's Social World is out! http://bit.ly/e7ISyC \u25B8 Top stories today 
via @shishev @oxygenlifestyle @twitscreens 
@lindsayfultz","to_user_id":null,"to_user_id_str":null},{"created_at":"Wed, 10 
Aug 2011 20:41:22 
+0000","from_user":"Team_RockCity","from_user_id":380022164,"from_user_id_str":"
380022164","geo":null,"id":101392718420393984,"id_str":"101392718420393984","iso
_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"ht
tp://a0.twimg.com/profile_images/1479842293/343068702_normal.jpg","source":"<a 
href="http://twitter.com/">web</a>","text":"Go Follow @WeAreRockCity and check 
out there new video Rock Man Swag  http://t.co/FypWdXn 
@TwitScreens","to_user_id":null,"to_user_id_str":null},{"created_at":"Wed, 10 
Aug 2011 15:46:03 
+0000","from_user":"MansionElanVIP","from_user_id":379841146,"from_user_id_str":
"379841146","geo":null,"id":101318397970751488,"id_str":"101318397970751488","is
o_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"h
ttp://a3.twimg.com/sticky/default_profile_images/default_profile_4_normal.png","
source":"<a href="http://www.twitscreens.com" 
rel="nofollow">TwitScreensBlaster</a>","text":"@TwitScreens Sat Leo Bday Bash 
hosted by @realdjkayslay @thecollinstwins @junkakacandy & @lovejenmakeup. 
Ladies free all 
night.","to_user":"TwitScreens","to_user_id":110178954,"to_user_id_str":"1101789
54"},{"created_at":"Wed, 10 Aug 2011 11:35:26 
+0000","from_user":"Doreans","from_user_id":85534550,"from_user_id_str":"8553455
0","geo":null,"id":101255331358842881,"id_str":"101255331358842881","iso_languag
e_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http://a3.
twimg.com/profile_images/654942401/ig323_hubble_infant_stars_normal.jpg","source
":"<a href="http://www.tweetdeck.com" rel="nofollow">TweetDeck</a>","text":"RT 
@Jankovitch: Thanks for RT @ilovethezodiak @CarButlerApp @jpnKevin_T @promedia 
@HaidaPrincess @lisduarte @TwitScreens @BadiniCreateam @FELDart 
@feld_art","to_user_id":null,"to_user_id_str":null},{"created_at":"Wed, 10 Aug 
2011 05:41:09 
+0000","from_user":"craighcollins","from_user_id":2824705,"from_user_id_str":"28
24705","geo":null,"id":101166170039787520,"id_str":"101166170039787520","iso_lan
guage_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:/
/a2.twimg.com/profile_images/1463800715/craig_photo_normal.png","source":"<a 
href="http://www.hootsuite.com" rel="nofollow">HootSuite</a>","text":"Thanks! 
@angelitayazan @golifedreams @twitscreens @upgrademycredit @wandafay 
@bytebenderapps @yakasera @marccusters @hollyhm2 
@marccusters","to_user_id":null,"to_user_id_str":null},{"created_at":"Tue, 09 
Aug 2011 20:48:02 
+0000","from_user":"AminaDiop","from_user_id":3335704,"from_user_id_str":"333570
4","geo":null,"id":101032008007954432,"id_str":"101032008007954432","iso_languag
e_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http://a2.
twimg.com/profile_images/1189756177/Master_Melanzh_Logo_002_normal.jpg","source"
:"<a href="http://twitter.com/">web</a>","text":"RT @THEMANSIONELAN: Sat Leo 
Bday Bash hosted by @realdjkayslay @thecollinstwins @junkakacandy & 
@lovejenmakeup. Ladies free all night. 
@twitscreens","to_user_id":null,"to_user_id_str":null},{"created_at":"Tue, 09 
Aug 2011 20:24:31 
+0000","from_user":"teamSSMag","from_user_id":105923862,"from_user_id_str":"1059
23862","geo":null,"id":101026089505259521,"id_str":"101026089505259521","iso_lan
guage_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:/
/a0.twimg.com/profile_images/1188350610/Cubana-Lust-showing-off-her-booty-in-a-S
traight-Stuntin-Magazine_normal.jpg","source":"<a 
href="http://twitter.com/">web</a>","text":"RT @THEMANSIONELAN: Sat Leo Bday 
Bash hosted by @realdjkayslay @thecollinstwins @junkakacandy & @lovejenmakeup. 
Ladies free all night. 
@twitscreens","to_user_id":null,"to_user_id_str":null},{"created_at":"Tue, 09 
Aug 2011 19:47:00 
+0000","from_user":"RealDjKayslay","from_user_id":86157743,"from_user_id_str":"8
6157743","geo":null,"id":101016650106671105,"id_str":"101016650106671105","iso_l
anguage_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http
://a2.twimg.com/profile_images/1179918266/Dez_normal.jpg","source":"<a 
href="http://twitter.com/">web</a>","text":"RT @THEMANSIONELAN: Sat Leo Bday 
Bash hosted by @realdjkayslay @thecollinstwins @junkakacandy & @lovejenmakeup. 
Ladies free all night. 
@twitscreens","to_user_id":null,"to_user_id_str":null},{"created_at":"Tue, 09 
Aug 2011 19:46:45 
+0000","from_user":"JUNKakaCANDY","from_user_id":93980202,"from_user_id_str":"93
980202","geo":null,"id":101016586042875905,"id_str":"101016586042875905","iso_la
nguage_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:
//a3.twimg.com/profile_images/1485713759/JUNKakaCANDY_normal.jpg","source":"<a 
href="http://twitter.com/">web</a>","text":"RT @THEMANSIONELAN: Sat Leo Bday 
Bash hosted by @realdjkayslay @thecollinstwins @junkakacandy & @lovejenmakeup. 
Ladies free all night. 
@twitscreens","to_user_id":null,"to_user_id_str":null},{"created_at":"Tue, 09 
Aug 2011 14:45:56 
+0000","from_user":"TwitScreens","from_user_id":110178954,"from_user_id_str":"11
0178954","geo":null,"id":100940883909812225,"id_str":"100940883909812225","iso_l
anguage_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http
://a2.twimg.com/profile_images/1136396763/image_normal.jpg","source":"<a 
href="http://www.hootsuite.com" rel="nofollow">HootSuite</a>","text":"RT 
@MadeMann: @TwitScreens most def about to make some noise with ya'll <-- let's 
get it","to_user_id":null,"to_user_id_str":null},{"created_at":"Tue, 09 Aug 
2011 03:25:27 
+0000","from_user":"MadeMann","from_user_id":9912010,"from_user_id_str":"9912010
","geo":null,"id":100769634185248768,"id_str":"100769634185248768","iso_language
_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http://a1.t
wimg.com/profile_images/1418931771/MMM3_normal.jpg","source":"<a 
href="http://twitter.com/">web</a>","text":"@TwitScreens most def about to make 
some noise with 
ya'll","to_user":"TwitScreens","to_user_id":110178954,"to_user_id_str":"11017895
4"},{"created_at":"Mon, 08 Aug 2011 22:15:12 
+0000","from_user":"TwitScreens","from_user_id":110178954,"from_user_id_str":"11
0178954","geo":null,"id":100691554955575296,"id_str":"100691554955575296","iso_l
anguage_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http
://a2.twimg.com/profile_images/1136396763/image_normal.jpg","source":"<a 
href="http://www.hootsuite.com" rel="nofollow">HootSuite</a>","text":"RT 
@MelonieDodaro: @TwitScreens Thanks for the RT <-- ur 
welcome!","to_user_id":null,"to_user_id_str":null},{"created_at":"Mon, 08 Aug 
2011 21:40:38 
+0000","from_user":"MelonieDodaro","from_user_id":7107843,"from_user_id_str":"71
07843","geo":null,"id":100682857919426560,"id_str":"100682857919426560","iso_lan
guage_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:/
/a1.twimg.com/profile_images/1386292572/TopDog-Avatar-_photo__normal.jpg","sourc
e":"<a href="http://twitter.com/">web</a>","text":"@TwitScreens Thanks for the 
RT","to_user":"TwitScreens","to_user_id":110178954,"to_user_id_str":"110178954"}
,{"created_at":"Mon, 08 Aug 2011 21:12:34 
+0000","from_user":"BotcheyEnt","from_user_id":15698933,"from_user_id_str":"1569
8933","geo":null,"id":100675794124283904,"id_str":"100675794124283904","iso_lang
uage_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http://
a1.twimg.com/profile_images/459660309/_MG_3724_normal.jpg","source":"<a 
href="http://www.twitscreens.com" 
rel="nofollow">TwitScreensBlaster</a>","text":"@TwitScreens #FACECARD #MONDAYS 
| #BOTTLEBAR | Tonight | "MUSIC INDUSTRY LEO EDITION" http://post.ly/2mqig via 
@botcheyent 
@mshannahKang","to_user":"TwitScreens","to_user_id":110178954,"to_user_id_str":"
110178954"},{"created_at":"Mon, 08 Aug 2011 20:17:21 
+0000","from_user":"Tristy","from_user_id":342115,"from_user_id_str":"342115","g
eo":null,"id":100661897568854019,"id_str":"100661897568854019","iso_language_cod
e":"en","metadata":{"result_type":"recent"},"profile_image_url":"http://a3.twimg
.com/profile_images/1233061252/Capture_normal.JPG","source":"<a 
href="http://paper.li" rel="nofollow">Paper.li</a>","text":"Tristan's Social 
World is out! http://bit.ly/e7ISyC \u25B8 Top stories today via @shishev 
@oxygenlifestyle @twitscreens 
@lindsayfultz","to_user_id":null,"to_user_id_str":null}],"results_per_page":15,"
since_id":0,"since_id_str":"0"}

Original issue reported on code.google.com by geo...@twitscreens.com on 11 Aug 2011 at 10:20