Hi Guyennan,
Yes, In RPC API you can send JsonObject as a response String that can also contain Json Array. This is the best approach if you try, on client side you can easily parse the respective data.
Let me know if it helps.
Thanks & Regards
Vishnu Garg