Possible to not use arrays ? can be closed
Closed this issue · 5 comments
streamcoindev commented
possible to not use an array for params so it send params: {} instead of params:[]
aceat64 commented
Why?
streamcoindev commented
let me rephrase that possible to use named params instead of positional ? because my rpc server does return invalid request when the json string uses params:[] and it works fine when i create a json string with params:{} i dont know if this is a difficult job to change ?
aceat64 commented
What version are you running? An empty array should be valid, and works fine for me against v0.15.1.
streamcoindev commented
i am using a customized version when i delete the params => $params in easybitcoin.php and request a method that doesnt require any parameters it works fine
streamcoindev commented
YOu can close this comment as i fixed it by adding JSON_FORCE_OBJECT