json values to string array in javascript -


I'm new to this community and I'm just starting programming. I could not find anything about this topic, so I decided to start a new one ... If it is wrong then please tell me.

OK, I have the following problem ... I want JSON-Object value to be in the string array in Javascript.

What I have found:

  {"prop1": "hello", "prop 2": "world!"}   < P> I should look like this  
  stringarray = [hello, world];   

How can I get the values ​​of JSON objects (Hello and Sansar) and without these special characters (", :) and without properties (an prop1, <

Repeat the keys and press values:

 < Code> var stringarray = []; for (var key in data) {stringarray.push (data [key]);}    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -