6 
 
        
      
      jquery Ajax jsonをWebサービスに投稿する
      
  JSONオブジェクトをasp.net Webサービスに投稿しようとしています。 私のjsonは次のようになります: var markers = { "markers": [ { "position": "128.3657142857143", "markerPosition": "7" }, { "position": "235.1944023323615", "markerPosition": "19" }, { "position": "42.5978231292517", "markerPosition": "-3" } ]}; 私はjson2.jsを使用してjsonオブジェクトを文字列化しています。 そして私はそれを私のウェブサービスに投稿するためにjqueryを使用しています。 $.ajax({ type: "POST", url: "/webservices/PodcastService.asmx/CreateMarkers", data: markers, contentType: "application/json; charset=utf-8", dataType: "json", success: function(data){alert(data);}, failure: function(errMsg) { alert(errMsg); } }); …
      
        
          
                   238
                
        
        
          
                  
                    jquery 
                  
                    ajax 
                  
                    web-services 
                  
                    json