json « Regular Expression « Javascript Data Type Q&A

Home
Javascript Data Type Q&A
1.Array
2.Clojure
3.date
4.decimal
5.function
6.global
7.loop
8.math
9.number
10.object
11.Regular Expression
12.scope
13.String
14.Var
15.variable
Javascript Data Type Q&A » Regular Expression » json 

1. Regexp: Remove quotation marks from json list    stackoverflow.com

I've got an array of objects in json format: [{"name":"obj1", "list":["elem1", "elem2", "elem3"]}, {"name":"obj2", "list":["elem4", "elem5", "elem6"]}] Now I'd like to construct regexp to remove quotation marks from around elements in the ...

2. Javascript Regular Expression to parse JSON    stackoverflow.com

I asked a question about regular expression in PHP (which got answered), I need help with same regular expression in javascript, here is the link to previous question. http://stackoverflow.com/questions/2015320/need-help-with-writing-regular-expression Again I ...

3. How to replace all   siblings from JSON string in JavaScript?    stackoverflow.com

How to replace all " " siblings from JSON string?

{"Cat":"laps milk","Dog":"Woofs at Postman","Bird":"Jumps over the river","I":"Want to learn Regexp"}
And btw, advice me please some good article or book from where I could finally learn Regexp :(

4. Javascript: Escape " from json string    stackoverflow.com

I've got a bit of a problem. I'm currently working on converting an old system to a newer version. In the old version, data requests were managed by Java applets, which ...

5. Convert ReGex to a simple and fast function (comma stripping from a JSON string)    stackoverflow.com

I have this ReGex expression in JavaScript right now: /(.*)(,)([\]\}]+)$/.exec(stringData). Basically it's removing any trailing comma from a malformed JSON string, (by concatenating r[1] + r[3] you get it). It's working well except ...

6. Regex to remove all special characters unused in JSON    stackoverflow.com

Is there are regex that I can use in JavaScript so that I can parse all special characters except those used by JSON? The main problem I am having is that ...

7. json parse - unescaping the quotes    stackoverflow.com

so i am using json to pass some information from one place to another... i have:

message.title = 'this is only a "test"';
so obviously, when i use JSON.stringify, i get escaped quotes. What i ...

8. JSON Regex Role    stackoverflow.com

i have this JSON (at the link), and i need to remove some strings from it, i'm a starter at regular expressions so i would like to know how to ...

9. Making a good json with str.replace    stackoverflow.com

I noticed that if I put double quotes on my input boxes that get passed to php via json, json_decode will return null. Thus, I decided to replace double quotes with ...

10. Can I store RegExp and Function in JSON?    stackoverflow.com

a block like:

var foo = {"regexp":/^http:\/\//,
           "fun":function(){},
}
What is a proper way to store it in JSON?

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.