gateways: fixing php/json communication problem. when we send object {0: 'something'}
we goting array instead of object