Eaxctly. To make it easy you can do this:
Dim dataSet As DataSet = New DataSet
dataSet.ReadXml("input.xml")
return dataSet.Tables(0)
When you return the dataTable, it will automatically convert it to json assuming that you have the converters set in your web.config.