not sure if Im seeing this correctly
1)
public List<account>; getData()
(look at the semi-colon ';')
2) Im not sure if I like the entire way this is set up ..
public List<account>; getData()
{
Account account = new Account
{
id = 1,
latitude = "17.3700",
longitude ="78.4800",
gallery = new List<string>
{
assets/img/items/1.jpg",
assets/img/items/2.jpg",
}
};
return new JavaScriptSerializer().Serialize(account);
}
I think what you want to be doing is something more like
List<account> Accounts = new List<account>();
</account></account>
It looks like in your top example you are expecting a list of data, whereas you're only generating a single datum and serialising that
I could be wrong .....
[edit] whoops, Ive blown the formatting up .. sorry, hope you still get the idea[/edit]