Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-24-2009, 07:36 PM   PM User | #1
shai
New to the CF scene

 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
shai is an unknown quantity at this point
Post Just JSON have a function similar to the Selectsinglenode in XML

Hi,

Does json have any functions like the xml selectsinglenode to get a particular element. Thank you.
shai is offline   Reply With Quote
Old 09-24-2009, 08:15 PM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,462
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
json had no functions, it's just a data format.

just like xml needs a dom document interface, json needs a runtime.

javascript provides functions like "".match() [].filter, and for-in.

if you want something a little higher-level, there a lot of libs out there.

you can get an xpath simulator, an sql simulator, and lots of tools like that; youre not locked into a particular proprietary interface like you are with xml.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is offline   Reply With Quote
Reply

Bookmarks

Tags
json

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:52 PM.


Advertisement
Log in to turn off these ads.