I use sendmany to make bitcoin payments
I believe that you don't need to encode the array. 
The library you are using should take care of this for you - at least the EasyBitcoin library does.

Let us know