Use net api written using "Hashtable" property returns json

"Hashtable" called a hash table, based on key-value pairs to pass values. Now I will write how to use the "Hashtable" to return json string, you first need cross-domain this in my essay has been written, cross-domain can then create a following

After air controllers

Select the empty api controller, built after we send a get and post requests,

First we get a write request, and obviously we need to reference the hashtable

Click on the first, then we write some test data, so then we run the project, and with the postman test

 

Guess you like

Origin www.cnblogs.com/feng12/p/11069598.html