vivazzi / JAson

Creation a JSON object with data of different types and run serialization and deserialization of JSON data.
MIT License
85 stars 46 forks source link

Critical: Key mismatch! #10

Closed drui9 closed 1 year ago

drui9 commented 1 year ago

Server echo'ed what I sent, but the incoming data had mismatched keys. Here is what I sent: {'route': 'init', 'params': {'expert-version': '0.0.1', 'expert-name': 'Ginger', 'expert-magic': 20221221, 'trading-risk': 10.0, 'symbol-extension': 'm', 'execution-slippage': 20, 'signal-expiry': 80, 'cl-sensitivity': 60.0, 'op-sensitivity': 40.0}} Single quotes because that's my server's log.

vs what I received: {"expert-version":"init","expert-name":{"expert-version":"0.0.1","expert-name":"Ginger","expert-magic":20221221,"trading-risk":10.00000000,"symbol-extension":"m","execution-slippage":20,"signal-expiry":80,"cl-sensitivity":60.00000000,"op-sensitivity":40.00000000}}

edit: false positive.