After studying at Blue Ideal for N years, today I will post something original for the first time because I have spent a lot of time solving this problem. The main reason is that the codes found on the Internet are either very cumbersome or cannot be universal or the format is only Fixed a few, so I specifically studied this problem, and finally optimized it to only 2 lines of code, which is very streamlined. It mainly uses JSON, regular and eval functions. If there are any questions, please feel free to correct me.
Thanks to zhanyuzai for the optimization. After testing the 2 lines of code, no problems were found. It has been updated now