Remove a json row from a relation in JsonPowerDB?

edited February 23 in How 2
JsonPowerDB provides 'REMOVE' command to remove json row of a relation, it removes single json row at a time. For using REMOVE command, you should know record number of json row which has to be remove. For know how to retrieve record number from JsonPowerDB click here.
Remove request format:
{
"token":"401400726|-363956312424328770|401400726", "cmd":"REMOVE",
"dbName":"MyDataBase",
"rel":"Employee",
"record": 1
}
Post above json request to the server using HTTP post request method on following information.
Method: ‘POST’
Content-Type: ‘application/json’

Remove response fromat:

JsonPowerDB returns response in Json format as shown below, which contains removed json record.

{
"data": {
            "empID":"101","empSex":"M",
            "empDed":0.0, "empName":"ARPIT TODEWALE",
            "empNet":0.0, "empBasic":25000, "empAllowance":0.0,
            "empDsg":"TECHNICAL HEAD"
             },
"message":"Success",
"status":200
}



Tagged:
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!