In most examples I saw the incoming data (for example for creating new entity) data is POST’ed as form encoded. This is great for ‘flat’ objects, but I need to transfer more complex objects (2-3 levels of nesting). Is it acceptable to transfer them in the body of POST request as JSON-encoded string?
Share
As long as you set the proper header to
application/jsonand generally use the HTTP mechanisms of content negotiation: yes, this is acceptable.