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 - Unable to make sub reports with Jasper -

sql - The object name contains more than the maximum number of prefixes. The maximum is 2 -

Java Web Service Soap fault exception client -