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

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -