What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-09 17:46:01
fetch api tutorial
fetch('https://api.github.com/users/manishmshiva', { method: "GET", headers: {"Content-type": "application/json;charset=UTF-8"} }) .then(response => response.json()) .then(json => console.log(json)); .catch(err =&... Add solution -
Python 2021-09-06 05:55:03
python requests
>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass')) >>> r.status_code 200 >>> r.headers['content-type'] 'application/json; charset=utf8' >>> r.encoding 'utf-8' >>> r.text u'{"type&qu... Add solution -
Javascript 2021-09-04 05:26:02
angular json to file and download
constructor(private sanitizer: DomSanitizer){} generateDownloadJsonUri() { var theJSON = JSON.stringify(this.resJsonResponse); var uri = this.sanitizer.bypassSecurityTrustUrl("data:text/json;charset=UTF-8," + encodeURICompon... Add solution -
Javascript 2021-08-31 13:06:01
c# json deserialize list of objects
//using the holy NEWTON! (you can find it as a nuget package) using Newtonsoft.Json; //get some storage for your required type List<YourType> OutputList; //usings clean up //Load some sort of stream (file or memory) using (Stream Stream = new File... Add solution -
Javascript 2021-08-31 12:46:02
Call the web api from $.ajax() function.
1- Calling the web api method without parameter • If you do not have parameter in your web API method then you no need to pass the data parameter inside AJAX function. • The URL parameter of ajax function must match with the Route attribute of ... Add solution