String Break for Array

Asked

Viewed 49 times

-1

I’m getting a comeback from a string from the REST API as follows:

string bancos = ["BRADESCO", "ITAU", "SANTANDER"];

Only I want to make this string an array for me to iterate with the returns.

How do I turn this string into an array ?

  • Could you show a copy of that part of json? .

  • @vladwoguer the return is a string exactly with this result ["BRADESCO", "ITAU", "SANTANDER"] and I want to turn it into an array

  • In case you have then the equivalent to do: String bancos = "[\"BRADESCO\", \"ITAU\", \"SANTANDER\"]";

  • @vladwoguer No, for the second time as I said it is EXACTLY this String bancos = "["BRADESCO", "ITAU", "SANTANDER"]"

  • Sorry I thought it was a Json.

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.