Generate JSON array with WCF

前端 未结 2 1829
悲哀的现实
悲哀的现实 2021-01-22 15:46

I\'m developing a WCF web service that returns this:

{
    \"allFormsResult\": [
        {
            \"FormId\": 1,
            \"FormName\": \"Formulario 1\"
         


        
2条回答
  •  北海茫月
    2021-01-22 16:26

    This behavior can also be set as default through the Web.Config, without the need to add the attributes directly to the contract.

    
      
                
            
    
    
    
      
        
          
                
      
    
    

提交回复
热议问题