[fix] json encode as array