JSONObject jsonResponseSummonHeroInfo;
storageService.insertJSONDocument(MyCustomCode.dbName, "Hero", jsonInsertHero, new App42CallBack() {
public void onSuccess(Object response)
{
-----> I want to return type JSONObject!!!!!
jsonResponseSummonHeroInfo.put("HeroObjID", StrHeroDocID);
return jsonResponseSummonHeroInfo;
but App42CallBack return type void!! have any idea return JSONObject inside App42CallBack() ?
}