I am using JSON with RESTful service. Implementation is like this.

GET on <http://hostname/a> returns

```
{
    "a": {
        "b": {
            "c1": "data1",
            "c2": "data2" 
        } 
    }
}

```

GET on <http://hostname/a/b> returns 

```
{
    "b": {
        "c1": "data1",
        "c2": "data2" 
    } 
}

```

I wanted to know the correct behavior of POST(and PUT) on <http://hostname/a>

```
{
    "a": {
        "b": {
            "c1": "newdata" 
        } 
    }
}

```

Should it just update the c1 with value "newdata" or it should replace the whole resource b, thereby just containing c1 ( i.e. c2 is overwritten and doesn't exist anymore)