REST API: Fix PHP 5.2 compatibility.

Short array syntax for arrays was introduced on 5.4