Link to home
Start Free TrialLog in
Avatar of skij
skijFlag for Canada

asked on

ASP.NET/VB Code Error (BC30183: keyword is not valid as an identifier vb)

I am getting an error:
<%@ Import Namespace="System.Web.Script.Serialization" %>
<%

    Public Class JSONstuff
        Public _archived As String
        Public _draft As String
        Public slug As String
        Public floorplan As FloorPlan
        Public updatedon As String
        Public _cid As String
        Public _id As String
    End Class

    Public Class FloorPlan
        Public fileId As String
        Public url As String
    End Class

    Private apiResult As String = "[{""_archived"": false,""_draft"": false,""slug"": ""hello world"",""floorplan"": {""fileId"": ""5b63742808c7fb391eda59ba"",""url"": ""web.svg""},""updatedon"": ""2018-08-19T17:51:47.638Z"",""_cid"": ""5b611bdfe35d2186da2bd7ac"",""_id"": ""5b61d8577742371347c4fd02""}]"
    Private jss As JavaScriptSerializer = New JavaScriptSerializer()
    Private XYZ As List(Of JSONstuff) = jss.Deserialize(Of List(Of JSONstuff))(apiResult)

    Response.write(XYZ)

%>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial