Results 6 comments of Mark

what about parsing the response on the client ? If using google's approach then too much unneeded parsing need to be done by client (compare to simple `json_decode` and so...

yes it is not supported by common RDBMS, but it already was discussed and we added exception for this case like it is done in django afaik, see this [issue](https://github.com/yiisoft/yii2/issues/2435),...

@arisk my answer was for @dizews and @samdark about `ON DUPLICATE KEY UPDATE` )

Could be useful. Also FYI, since Yii special architecture features - `exit` , `echo`, `header` and other, i would rather suggest to use PhpBrowser for functional in this case.

@DavertMik can you look on this one please ?