jquery - Extract few key value pair from JSON object to another JSON -


i've got json object that:

var storeoriginallist = '[{"store_id" : "1932","store_name" : "1 sale day12","keywordurl" : "1-sale-a-day1234","category" : "stores"},{"store_id" : "1171","store_name" : "100 day loans","keywordurl" : "100-day-loans","category" : "stores"}]' 

i want extract store_id, store_name , make new json object.

my question is, can without looping. if yes, please provide sample code.

you can't reasonably without looping, no. try regular expression, a) looping, too, in processing of regex; , b) using regular expressions manipulate non-regular things json or html prone failure.

here tools use in solution:


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -