Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Retrieve and Update JSON Object Using PHP CODE

 
Ranch Hand
Posts: 56
Android MyEclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hai all,


I`m doing offline chat application, this application needs to work on Online and Offline. If i`m in Offline means the data are stored in localStorage after connecting Internet it synchronize with server, here i`m using php as a server side script.


The problem i need to append my json object to json file...
below i have enclosed my json file..

63_comment.json




My current JSON Object is

{"Comments": [
{"Name": "Arun", "Comment": "How to solve this problem"}]}
]
}


I need to append this commend into my 63_comment.json file...


please help me

What i have tried till now using php written here




Here i have get Json object from my file .... then how to append and store again my json file...........
Please anybody help me to out from this....


Thanks
Arun
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Looks like you hit Send twice. I'll lock this one.
 
We can walk to school together. And we can both read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic