Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

JSON Request

$
0
0

Hi, I have an Ajax request to a webservice.

In the webservice I have:

<WebMethod()> _
    Public Function GetMyValues() As String

        Dim result = "{""year2012"":{""results"":{""FR-J"":1.5}}}"
        Return result

    End Function

This returns

{"d":"{\"year2012\":{\"results\":{\"FR-J\":1.5}}}"}

But how can I make it return like this?

{"year2012":{"results":{"FR-J":1.5,"FR-G":2,"FR-S":1.5}}}

Thanks for any advice



Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>