The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

399304 (1) [Avatar] Offline
#1
Using the syntax '{"name":"John"}' for --payload does not work for me in Windows 7 using version 1.10.20 of the CLI. I get the following error message:

A client error (InvalidRequestContentException) occurred when calling the Invoke operation: Could not parse request body into json: Unexpected character (''' (code 39)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: [B@3613802f; line: 1, column: 2] 


I have to use "{"""name"":""John""}" to get a successful invocation.
Danilo Poccia (11) [Avatar] Offline
#2
Thanks for spotting the issue, and the solution!

I'll add a note in the book that for Windows environments double quotes are required.
Danilo Poccia (11) [Avatar] Offline
#3
My mistake, your suggested fix was not included in the previous update, but it'll go in the next one. Thanks again!