where is the my mistake save json result

2 Answers 129 Views
Fiddler Classic
ali
Top achievements
Rank 1
ali asked on 04 Nov 2022, 12:36 PM

hello 

if (oSession.url.Contains("/api/v1/users/web_profile_info/?username=")) {
var directory: String = "d:\\aos\\";
var path: String = System.IO.Path.Combine(directory + "as.json");
oSession.utilDecodeResponse();
oSession.SaveResponseBody(path);
}

 

and result save file but file is empty .

How to save json result ?

2 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 07 Nov 2022, 05:49 AM

Hello Ali Kaptanoglu,

 

Check the place where your implementation is placed. Try using your code in the OnDone event works fine on my side with https://httpbin.org/json

 

 

Regards,
Nick Iliev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Larisa
Top achievements
Rank 1
Iron
answered on 18 Nov 2022, 07:41 AM
First, remove the stringify function. you don't need it. Also note that the elements you want are not in the root level of the result, ...A JSON string can be stored in its own file, which is basically just a text file with an extension of .json , and a MIME type of application/json A JSON file stores the data and object in  lovelanguagetest.org    the JSON format. A JSON ( JavaScript object notation )format is a standard format to store and exchange data. Initially, JSON file is only used to exchange the data between the web application and server.Amazon DocumentDB (with MongoDB compatibility) is a fast, scalable, highly available, and fully managed document database service that supports MongoDB workloads, that makes it easy to store, query, and index JSON data. Amazon DocumentDB makes it easy to insert, query, index, and perform aggregations over JSON data.
Tags
Fiddler Classic
Asked by
ali
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Larisa
Top achievements
Rank 1
Iron
Share this question
or