ruby - Delete elements from string + transform it into array -


i have string : data = "[\"super\", \"cool!\", \"bien écrit\", \"first!\", \"why speaking french here?\"]"

i transform : data = ["super", "cool!", "bien écrit", "first!", "why speaking french here?"]

parse json. try

require 'json' data = json.parse data 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -