How to remove the quotation marks on both sides of the array

Insert picture description here
As shown in the figure, the attribute value of the data FJ1 with the red line visible to the naked eye is a string outside the array.
If you want to get an array of strings, you can use the following method:
var str = "[{"name":"2.pdf","url":"/common/Pdf?Src=CF34830A662A49C98BC2D4C627134A6F.pdf"},{"name":"4.pdf","url":"/common/Pdf?Src=03D461DB80D843C2B38E7D390EE72419.pdf"},{"name":"5.pdf","url":"/common/Pdf?Src=B8F85D05E91941E38FC4CBF3EBCAC930.pdf"}]"
JSON.parse(str)

Guess you like

Origin blog.csdn.net/qq_45432996/article/details/109135515