PDA

View Full Version : Semantics of JSONReader root property for a RESTful store



JacobGu
17 Mar 2011, 4:07 AM
A RESTful store can do several operations, ie, CRUD:


read list of rows
update one row
destroy a row
create a row

One difference amongst the CRUD operations is that the read occurs on multiple rows, and the other three operations are on one row.

This where we get to a semantical issue. The reader take a root property value, say, 'rows', and the rows value of the data object will be an array of objects. However, the other three operations would then also use 'rows' as the root value and set the data object as the scalar value of rows.

Should there really be be two root property values?


root property of JSON reader which is semantically plural
root property of JSON writer which is semantically singular