D
Devon_Nullman
Guest
I am using google to translate, the response is supposedly in JSON format but -
I have tried my JSON Utility to make a Class for the deserialization - it tells me that the syntax is not JSON
I have tried a supposedly working class for the JSON with both Newtonsoft and the JavaScript Serializer, Both fail. Newtonsoft throws the error that the data is not proper JSON and the JavaScript deserializer throws an exception that no arrays are in the data, Here are two different query raw results:
[[["\"Hoy es cálido\"","\"Today is warm\"",null,null,3]],null,"en"]
[[["\"Mi nombre es Devon\"","\"My name is Devon\"",null,null,3]],null,"en"]
This is the Class that is supposedly correct:
Public Class JsonData
Public Property Data() As Data
End Class
Public Class Data
Public Property Translations() As List(Of Translation)
End Class
Public Class Translation
Public Property TranslatedText() As String
End Class
Continue reading...
I have tried my JSON Utility to make a Class for the deserialization - it tells me that the syntax is not JSON
I have tried a supposedly working class for the JSON with both Newtonsoft and the JavaScript Serializer, Both fail. Newtonsoft throws the error that the data is not proper JSON and the JavaScript deserializer throws an exception that no arrays are in the data, Here are two different query raw results:
[[["\"Hoy es cálido\"","\"Today is warm\"",null,null,3]],null,"en"]
[[["\"Mi nombre es Devon\"","\"My name is Devon\"",null,null,3]],null,"en"]
This is the Class that is supposedly correct:
Public Class JsonData
Public Property Data() As Data
End Class
Public Class Data
Public Property Translations() As List(Of Translation)
End Class
Public Class Translation
Public Property TranslatedText() As String
End Class
Continue reading...