Ruby: Parsing a string representation of nested arrays into an Array?

后端 未结 4 473
梦毁少年i
梦毁少年i 2020-12-03 14:01

Let\'s say I had the string

\"[1,2,[3,4,[5,6]],7]\"

How would I parse that into the array

[1,2,[3,4,[5,6]],7]
4条回答
提交回复
热议问题