tags:

views:

40

answers:

0

Hello,

I am wondering if it is possible to modify an existing JSON file on my server using the jquery post method. If not, is there any other function/library that people use to achieve this goal?

[
"Soon", 
[
  {
    "body": "", 
    "when": "lunchtime", 
    "item_types": [
      5
    ], 
    "author": 3, 
    "rev": 1, 
    "joining_profiles": [
      {
        "pic": "http://graph.facebook.com/83809533332303/picture", 
        "id": 3, 
        "name": "Gmail"
      }, 
      {
        "pic": "http://graph.facebook.com/62022222254388/picture", 
        "id": 81, 
        "name": "Burglar"
      }, 
      {
        "pic": "http://graph.facebook.com/6693233427329/picture", 
        "id": 83, 
        "name": "Lamesauce"
      }
    ], 
    "comments": [
      {
        "body": "taeber", 
        "created": "2010-06-26T10:31:29.650000", 
        "author": 3, 
        "author_profile": {
          "pic": "http://graph.facebook.com/83809523323303/picture", 
          "id": 3, 
          "name": "Test2 Gmail"
        }

]

]
 ]

Basically I would like to have the ability to modify the "rev" element from 1 to 3 from the client side and have that reflected on the server side json