Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have looked at the network documentation for Unity and most examples seem to be related to networking your game for multiplayer. I am just looking to grab a JSON response from an API for dynamically generating a menu.

Are there some good examples for doing just simple network calls to get a response from a web server?

share|improve this question
Please don't cross-post. – Jimmy Nov 21 '11 at 18:22
up vote 2 down vote accepted

You go through the WWW class.

You can do a GET or POST through that, and get the .text from the result when it finishes downloading. There are several C# JSON decoders that you can use instead of parsing the result yourself.

share|improve this answer
That was perfect, every time I searched for network help it only came back with information about the Network class. Thanks. – Bobbake4 Nov 21 '11 at 19:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.