Closed leoatpolaris closed 1 year ago
Thanks for reporting the issue. In fact, this problem can be reproduced as simply as:
$ pipy -e "{1:'a',2:'b'}"
[object Literal]
{"1.000000":"a","2.000000":"b"}
But anyway, I'll look into it shortly.
verified and confirm that commit#https://github.com/flomesh-io/pipy/commit/cd71904fc0b5ef9bba8776b632e9391bd0ab1d75 fixes this.
➜ ./pipy -e "{1:'a',2:'b'}"
[object Literal]
{"1":"a","2":"b"}
2022-11-21 23:42:32.829 [ERR] [pjs] Script did not result in a Configuration
2022-11-21 23:42:32.830 [INF] [shutdown] Shutting down...
2022-11-21 23:42:32.830 [INF] [shutdown] Stopped.
Done.
Bug Report
Pjs object property integer number key will be converted to float string
Pipy Version
Steps to reproduce
Output