This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes PHP and the fly likes Retrieve and Update JSON Object Using PHP CODE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » PHP
Reply locked New topic
Author

Retrieve and Update JSON Object Using PHP CODE

Arunkumar Chinnadurai
Ranch Hand

Joined: Dec 15, 2011
Posts: 56

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
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Looks like you hit Send twice. I'll lock this one.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Retrieve and Update JSON Object Using PHP CODE
 
Similar Threads
Log4j-DailyRollingFileAppender not woking with Websphere Application Server 6.1
How to print java Map name/value pair through JSON object in JS
Retrieve and Update JSON Object Using PHP CODE
Json
Offline/online working of application