# Error: Error parsing JSON on zcash-cli.exe z\_sendmany command

**URL:** <https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798>\
**Category:** Technical Support\
**Created:** [August 13, 2022, 6:19pm UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798 "2022-08-13T18:19:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexferro](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@alexferro](https://forum.zcashcommunity.com/u/alexferro)\
**Post date:** [August 13, 2022, 6:19pm UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/1 "2022-08-13T18:19:35Z")

</div>

Hi!

Win10+zcashd 5.2.0 and Zecwallet Fullnode 1.8.3 for windows installed.

I try to send money by zcash-cli.exe z\_sendmany command like as:

zcash-cli.exe z\_sendmany “from\_t\_address” ‘[{“address”: “to\_t\_adress”, “amount”: 2.12947999}]’

where “from\_t\_address” is my t\_address and “to\_t\_address” is t\_address destination of zec money. Notte: I respect blank char like show in documentation.

And i got this error message:  
error: Error parsing JSON:'[{address:

Then I write the command whitout blank chars:

zcash-cli.exe z\_sendmany “from\_t\_address” ‘[{“address”:“to\_t\_adress”,“amount”:2.12947999}]’

and the error change in:  
error: Error parsing JSON:‘[{address:to\_t\_address,amount:2.12947999}]’

Cna you help me please?

Thanks, Ale

---

<div class="post-metadata">

**Author:** ![BrunchTime](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/brunchtime/32/11275_2.png) [@BrunchTime](https://forum.zcashcommunity.com/u/BrunchTime)\
**Post date:** [August 13, 2022, 6:49pm UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/2 "2022-08-13T18:49:20Z")

</div>

I get the same result with single quotes around my json string. Give it a try with double quotes, escaping the quotes within - i.e. `"[{\"address\":\"to_t_adress\",\"amount\":2.12947999}]"`

---

<div class="post-metadata">

**Author:** ![Autotunafish](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/autotunafish/32/7827_2.png) [@Autotunafish](https://forum.zcashcommunity.com/u/Autotunafish)\
**Post date:** [August 13, 2022, 7:39pm UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/3 "2022-08-13T19:39:05Z")

</div>

Remember that it needs to also have the privacy policy, and looks like you do need to single-quote the array

Examples:

zcash-cli z\_sendmany “t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd” ‘[{“address”: “ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf”, “amount”: 5.0}]’ 10 0.00001 “AllowRevealedSenders”

---

<div class="post-metadata">

**Author:** ![alexferro](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@alexferro](https://forum.zcashcommunity.com/u/alexferro)\
**Post date:** [August 14, 2022, 11:00am UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/4 "2022-08-14T11:00:37Z")

</div>

Hi @BrunchTime ,

I run zcash-cli.exe comand as you suggest me, like:

zcash-cli.exe z\_sendmany “t\_from\_address” “[{"address":"t\_to\_address","amount":2.12947999}]”

And I received from zcash-cli.exe a opid-number like:

opid-ff99cd595-NNNN-NNNN-NNXN-NNNNXNNNXXXX

where N is numeric and X is alphabetic

Bye, Ale

---

<div class="post-metadata">

**Author:** ![str4d](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/str4d/32/64_2.png) [@str4d](https://forum.zcashcommunity.com/u/str4d)\
**Post date:** [August 24, 2022, 2:36pm UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/5 "2022-08-24T14:36:27Z")

</div>

I suspect the problem here was “magic quotes”. Look at the difference between these two commands:

> [@alexferro](#):
>
> zcash-cli.exe z\_sendmany “from\_t\_address” ‘[{“address”: “to\_t\_adress”, “amount”: 2.12947999}]’

> [@alexferro](#):
>
> zcash-cli.exe z\_sendmany “t\_from\_address” “[{“address”:“t\_to\_address”,“amount”:2.12947999}]”

(EDIT: Wow, even this forum’s editor is replacing the standard double quotes in the second referenced section with the fancy ones. Look at the original posts to see them.)

The former uses fancy quotation marks that some text editors insert:

```auto
>>> '“'.encode('utf8')
b'\xe2\x80\x9c'
>>> '”'.encode('utf8')
b'\xe2\x80\x9d'

```

The latter uses the standard ASCII quotation marks:

```auto
>>> '"'.encode('utf8')
b'"'
>>> hex(ord('"'))
'0x22'

```

Only the standard ASCII quotation mark character is [valid JSON](https://www.json.org/json-en.html).

---

<div class="post-metadata">

**Author:** ![alexferro](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@alexferro](https://forum.zcashcommunity.com/u/alexferro)\
**Post date:** [September 1, 2022, 8:37am UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/6 "2022-09-01T08:37:26Z")

</div>

> [@Autotunafish](#):
>
> AllowRevealedSenders

I notice now that the above opid-ff99cd595-NNNN-NNNN-NNXN-NNNNXNNNXXXX transaction was never carried out and the funds were never transferred.

What’s going on?

Is something wrong?

Thanks, Ale

---

<div class="post-metadata">

**Author:** ![Autotunafish](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/autotunafish/32/7827_2.png) [@Autotunafish](https://forum.zcashcommunity.com/u/Autotunafish)\
**Post date:** [September 1, 2022, 2:52pm UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/7 "2022-09-01T14:52:02Z")

</div>

Yes that means the tx was not broadcasted. You can use zcash-cli z\_getoperationresult ‘[“operationid”, …]’  
to get some more info if the node hasnt restarted since.

---

<div class="post-metadata">

**Author:** ![alexferro](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@alexferro](https://forum.zcashcommunity.com/u/alexferro)\
**Post date:** [September 1, 2022, 4:04pm UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/8 "2022-09-01T16:04:43Z")

</div>

I have to specify as privacypolicy option = “AllowFullyTransparent”, so the correct command is:

zcash-cli.exe z\_sendmany “t\_from\_address” “[{\“address\”:\“t\_to\_address\”,\“amount\”:2.12947999}]” 10 0.00001 “AllowFullyTransparent”

because I used both t\_address.

Then If I want to verify operation result I need to run this command:

zcash-cli.exe z\_getoperationresult “[\“opid-number\”]”

with status “success” !

Thanks, Ale

---

<div class="post-metadata">

**Author:** ![alexferro](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@alexferro](https://forum.zcashcommunity.com/u/alexferro)\
**Post date:** [September 1, 2022, 4:42pm UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/9 "2022-09-01T16:42:12Z")

</div>

I now notice that the requested transaction of 0.00553074 Zec was successful but I had an additional unwanted debit of 0.01425926 which was credited to unknown t1NyfYcS5k2qKP5iDZ3Z9wNnmMdmKMgFjgU , so I had a total charge of 0.0198 ZEC ?!?!?! Why?

Seeking explanations, thanks.

---

<div class="post-metadata">

**Author:** ![str4d](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/str4d/32/64_2.png) [@str4d](https://forum.zcashcommunity.com/u/str4d)\
**Post date:** [September 1, 2022, 4:51pm UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/10 "2022-09-01T16:51:21Z")

</div>

> [@alexferro](#):
>
> Then If I want to verify operation result I need to run this command:
> 
> zcash-cli.exe z\_getoperationresult “[\“opid-number\”]”
> 
> with status “success” !

Yep, this is necessary because the `z_sendmany` API is asynchronous, and some of the checks can’t be done in the initial synchronous phase.

> [@alexferro](#):
>
> I now notice that the requested transaction of 0.00553074 Zec was successful but I had an additional unwanted debit of 0.01425926 which was credited to unknown t1NyfYcS5k2qKP5iDZ3Z9wNnmMdmKMgFjgU , so I had a total charge of 0.0198 ZEC

Given how evenly those two numbers add up when including the 1000 zatoshi fee:

```auto
0.00553074 + 0.01425926 + 0.00001000 = 0.01980000

```

I would expect that `t1NyfYcS5k2qKP5iDZ3Z9wNnmMdmKMgFjgU` is a change address in your wallet. You should be able to see it in the output of `zcash-cli listaddresses`, in the array at `['transparent']['changeAddresses']` under one of the sources.

---

<div class="post-metadata">

**Author:** ![alexferro](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@alexferro](https://forum.zcashcommunity.com/u/alexferro)\
**Post date:** [September 2, 2022, 1:55pm UTC](https://forum.zcashcommunity.com/t/error-error-parsing-json-on-zcash-cli-exe-z-sendmany-command/42798/11 "2022-09-02T13:55:27Z")

</div>

Yes! I confirm that “t1NyfYcS5k2qKP5iDZ3Z9wNnmMdmKMgFjgU” is a change address in my wallet.

Thanks, Ale
