-2

Can anyone please point me to a tutorial or something for parsing JSON strings in android?

Anthony Graglia
  • 5,355
  • 5
  • 46
  • 75
M364M4N cro
  • 680
  • 2
  • 10
  • 23

2 Answers2

2

It is not a tutorial, but it will be useful four you: http://code.google.com/p/google-gson/

viplezer
  • 5,519
  • 1
  • 18
  • 25
  • 1
    please post this as a comment. You should add code snippets alongside such a link if you want to proceed so anyway – jmishra Mar 08 '12 at 11:08
  • GSON saves us so much time and effort, just a little fiddly with arrays occasioanly – Graham Smith Mar 08 '12 at 11:08
  • ladiesMan217, got it, next time I will post comment – viplezer Mar 08 '12 at 11:10
  • Why does this need to be a comment? There are *lots* of other answers where there is a link to a lib. The GSON site has tutorials and guides with code in, therefore why reinvent the wheel? I am sure a user can click the provided link. – Graham Smith Mar 08 '12 at 11:12
  • 1
    @GrahamSmith See [this question on meta](http://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers) for various reasons. I personally don't like these answers because links can be dead; if the only, accepted answer is a link, the question becomes completely useless for search engine users. If it's a comment, others are still encouraged to give a "proper" answer because the question is not done. –  Mar 08 '12 at 11:30
  • I looked through previous answers I have given and I have included sample code in most of them. Thanks for the meta link was quite informative. When i get edit privileges I shall alter any posts of mine that reference just a link to help the community now I know :) – Graham Smith Mar 08 '12 at 11:49