JSON Decoder issue in Adobe App42 swc

0 votes
Hi, whenever I call a function using the App42 swc I receive this response. Error #1063: Argument count mismatch on com.adobe.serialization.json::JSONDecoder(). Expected 2, got 1. This is because I'm using the Chartboost ANE, which also includes a JSONDecoder file with two arguments (public function JSONDecoder (s:String, strict:Boolean)), while the App42 swc includes a JSONDecoder file with only one. I'm trying to figure out a way around this conflict, but I don't think I can do it without the source code. I'd like to use App42 since it seems to have the only competant leaderboard system for Flash, but I can't use it right now.
asked Jan 6, 2016 in App42 Cloud API-BaaS by kelsonkug (10 points)
recategorized Jan 6, 2016 by kelsonkug

1 Answer

0 votes

Hello Kelsonkug,

 

You can change the package of JSONDecoder in Chartboost Ane, their source code is open which you can find from here

Please have a look into it and let me know if it helps. 

Regards,

Himanshu Sharma

answered Jan 6, 2016 by hs00105 (2,005 points)
I'll check it, out but I really don't think I should have to be rebuilding ane's when App42's file is the one that's odd.

Regardless, thanks for your quick answer.
I fixed this by adding the json folder of the as3corelib source code directly to my project.  Thanks again.
Great to know that your query has been resolved. Let me know if you need any help from my side.

regards,
Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...