0

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 ?
///////////////////////////////////////////////
//////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////
///////////////////////////////////////
 //////////////////////////////////
   ///////////////////////////
         ////////////////////
Sniver
  • 1,949
  • 2
  • 11
  • 6

1 Answers1

1

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
Community
  • 1
  • 1
Dheeresh Singh
  • 15,643
  • 3
  • 38
  • 36