Skip to content

Instantly share code, notes, and snippets.

@atifaziz
Created September 8, 2010 18:50
Show Gist options
  • Save atifaziz/570612 to your computer and use it in GitHub Desktop.
Save atifaziz/570612 to your computer and use it in GitHub Desktop.
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