Sniver
Sniver

Reputation: 1959

How i write in json file on server

i have JSON FILE on my localhost i want to update it via code how i do that any help plz ? i have list.JSON ON MY LOCAL HOST i want delete all data in it and write new data in it and update it on server ?

can any one tell me how i do that ?
///////////////////////////////////////////////
//////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////
///////////////////////////////////////
 //////////////////////////////////
   ///////////////////////////
         ////////////////////

Upvotes: 0

Views: 651

Answers (1)

Dheeresh Singh
Dheeresh Singh

Reputation: 15701

How to send a JSON object over Request with Android?

 1- crate a page on server which takes this json and update it and take it's url 


2- take the input from user 
3- put it in a bean/model (wrap in object form as per structure )
4- crate the json from object (can use libraries like GSON for this
5- use post method to push json to srver

Upvotes: 1

Related Questions