1. If GetCommand (()) returns a string. How can I convert it to an object format? 2. How to convert 3,216.65 to the available 3216.65 format.
Inventors quantify - small dreamsQuestion 1: What do you want to convert the string to? Question 2: If you need to delete commas from a string, you can do so. See the JavaScript language tutorial for the relevant string handling function. Or Python's string handling function.
Inventors quantify - small dreamsGuess where you got it wrong, check it out.
eth8888So I walked in the morning. Last night I didn't make any mistakes and I don't know why.
Inventors quantify - small dreamsvar cmd = GetCommand (()) is used. var obj = JSON.parse ((cmd)) is used This is how it is done.
eth8888I'm so tired of it. Then I tried this. var cmd = GetCommand (()) is used. var obj = JSON.parse (('cmd') is used. var cmd = GetCommand (()) is used. var obj = JSON.parse ((cmd)) is used This is a list of all the different ways JSON.parse is credited in the database.
Inventors quantify - small dreamsIt's not Java, it's JavaScript. JS language. Just search for JSON.
eth8888But writing Java on Baidu is completely different from writing Java on a regular platform.
Inventors quantify - small dreams 把JSON字符串解析就可以了,使用JSON.parse函数,具体可以百度搜索下该函数用法。这个是Javascript语言相关的。
eth8888cmd returns {"id":"fbaab26e-f993-11eb-81c8-cb01d92427de","name":"Binance contracts.Binance contracts.","uri":"https://www.binancezh.io/zh-CN/futures-activity/leaderboard/user?uid=E7EF651A7B2FACC5B2858F9C7B6609EE&tradeType=PERPETUAL","text":"Number of handfuls of positions \n contract opening price \n ETHT 0.067000000 3,440.25"} This is a string, but I want Logcmd.text) to get this part of the data "Number of handfuls of positions \n contract opening price \n ETHT 0.00000000 3,440.0 USD", but it does not run.