Reading JSON
PLAIN TEXT
C#:
1.
2.
string jsonText = "[JSON!,1,true,{property:value}]";
3.
4.
JsonReader reader = new JsonReader(new StringReader(jsonText));
5.
6.
Console.WriteLine("TokenType ValueType Value");
7.
8.
while (reader.Read())
9.
{
10.
Console.WriteLine(reader.TokenType + " " + WriteValue(reader.ValueType) + " " + WriteValue(reader.Value))
11.
}
12.
Writing JSON
PLAIN TEXT
C#:
1.
2.
StringWriter sw = new StringWriter();
3.
JsonWriter writer = new JsonWriter(sw);
4.
5.
writer.WriteStartArray();
6.
writer.WriteValue("JSON!");
7.
writer.WriteValue(1);
8.
writer.WriteValue(true);
9.
writer.WriteStartObject();
10.
writer.WritePropertyName("property");
11.
writer.WriteValue("value");
12.
writer.WriteEndObject();
13.
writer.WriteEndArray();
14.
15.
writer.Flush();
16.
17.
string jsonText = sw.GetStringBuilder().ToString();
18.
19.
Console.WriteLine(jsonText);
20.
// [JSON!,1,true,{property:value}]
21.
Related Stuff
-
MooV: Using cutting edge Video phones and Software Video Phones - coupling all that with VoIP and empowering the disabled.
-
Moo Telecom: VoIP communications made easy - Ring anyway with the fun and ease of using a normal phone
-
TagR:Mobile Social Network with Real Time Locations Based services, and Ambience Intelligence, VoiP, IM, Skype, Googletalk, Mapping, Flickr, Events, Calendaring, Scheduling, SecondLife Support
-
ClearSMS : ClearSMS is a Web-based application that lets you send bulk SMS messages to your customers, contacts, or just about anyone.
-
Jajah:jah is a VoIP (Voice over IP) provider, founded by Austrians Roman Scharf and Daniel Mattes in 2005[1]. The Jajah headquarters are located in Mountain View, CA, USA, and Luxembourg. Jajah maintains a development centre in Israel.
-
Skype: It’s free to download and free to call other people on Skype. Skype the number one voice over ip software
- PrivatePhone: a free local phone number with voicemail and messages you can check online or from any phone.

Original Source: