changed gson to flexjson