Created
September 8, 2010 18:50
-
-
Save atifaziz/570612 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM http://groups.google.com/group/jayrock/t/c16cb357aa2de12 | |
Imports System.IO | |
Imports Jayrock.Json | |
Module MainModule | |
Sub Main() | |
Dim jsonText As String = _ | |
"[""Europe"", ""Asia"", ""Australia"", " _ | |
& """Antarctica"", ""North America"", ""South America"", " _ | |
& """Africa""]" | |
Dim reader As JsonTextReader = New JsonTextReader( _ | |
New StringReader(jsonText)) | |
Try | |
While reader.Read() | |
If reader.TokenClass.Equals(JsonTokenClass.String) _ | |
AndAlso reader.Text.StartsWith("A") Then | |
Console.WriteLine(reader.Text) | |
End If | |
End While | |
Finally | |
reader.Close() | |
End Try | |
End Sub | |
End Module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment