IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New JSON
[link|http://www.crockford.com/JSON/|http://www.crockford.com/JSON/]

Looks suspiciously familiar... but they've left a certain language off the list.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New That language is included in the first paragraph.
I saw the similarity upon looking at it.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey

[link|http://it.slashdot.org/comments.pl?sid=134485&cid=11233230|"Microsoft Security" is an even better oxymoron than "Military Intelligence"]
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
New Not the one *I'm* thinking of...
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Hmmm...
I guess, I am completely at a loss then.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey

[link|http://it.slashdot.org/comments.pl?sid=134485&cid=11233230|"Microsoft Security" is an even better oxymoron than "Military Intelligence"]
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
New Re: Hmmm...
JSON looks suspiciously like Objective C property files...
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New migosh.
That would make complete sense.

But, I am not sure why you wouldn't use an XML interchange versus JSON interchange.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey

[link|http://it.slashdot.org/comments.pl?sid=134485&cid=11233230|"Microsoft Security" is an even better oxymoron than "Military Intelligence"]
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
New Re: migosh.
[link|http://www.crockford.com/JSON/xml.html|http://www.crockford.com/JSON/xml.html]
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Its not plists though
its gratuitously different.

Why not just support plists? Heck, we use them all over the place here for config data.



"Whenever you find you are on the side of the majority, it is time to pause and reflect"   --Mark Twain

"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."   --Albert Einstein

"This is still a dangerous world. It's a world of madmen and uncertainty and potential mental losses."   --George W. Bush
Expand Edited by tuberculosis Aug. 21, 2007, 06:41:10 AM EDT
New Re: Its not plists though
Might be because they got it from Python instead then.

It looked the same to me, but I don't use plists every day.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Re: Its not plists though
Plists

Dict = {}
Array = ()



"Whenever you find you are on the side of the majority, it is time to pause and reflect"   --Mark Twain

"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."   --Albert Einstein

"This is still a dangerous world. It's a world of madmen and uncertainty and potential mental losses."   --George W. Bush
Expand Edited by tuberculosis Aug. 21, 2007, 06:41:22 AM EDT
New If that's the only change it's easy enough to make.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Not sure that's the only one
just the obvious one.

Dict: { key = value; }
Array: ( one, two, three, ) or ( one, two, three )
String: token or "quoted string"

C style comments and escapes (\\n\\t...) are allowed.

You can write a recursive descent parser in about 4 functions, each about 5 lines each.



"Whenever you find you are on the side of the majority, it is time to pause and reflect"   --Mark Twain

"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."   --Albert Einstein

"This is still a dangerous world. It's a world of madmen and uncertainty and potential mental losses."   --George W. Bush
Expand Edited by tuberculosis Aug. 21, 2007, 12:37:46 PM EDT
New I give up.
But I'm starting to get annoyed at how many of my Google searches lately have JSON near the top of the list. Who needs JSON when you have eval()?
New ?
JSON isn't code, it's a data format. What does that have to do with eval()?
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New It's a data format that has to be parsed by code.
Even their "JSON in Javascript" page has parsing/JSON-object-production code.
New Every data format has to be parsed.
I still don't see your point with respect to eval()...
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New I'm misleading myself
Looks like they already use eval() to convert JSON to JS. I saw the JS-to-JSON "stringify" code and must have assumed there were equally ugly conversions in the other direction.
New I may be missing something
The only advantage I see is that it removes the distinction of attributes vs elements. Which I think is a good thing, btw, but when I control the interchange format I've already decided not to use attributes in XML. So what else does this gain me?
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New Re: I may be missing something
[link|http://www.crockford.com/JSON/xml.html|http://www.crockford.com/JSON/xml.html]
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New We just did this today
If someone else sends me a dtd that I have to use, I have no choice. When I have a choice, I can feed any data structure into the PEAR xml serializer, and unserializer on the other end, and get the same data structure back. Easy.

All the added complexity[1] of xml is the layers of validation to make sure you get the right data structure. If you don't need the validation you don't need to check the dtd.




[1] Other than attributes, which I think are a fundamentally broken idea.
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
     JSON - (admin) - (19)
         That language is included in the first paragraph. - (folkert) - (10)
             Not the one *I'm* thinking of... -NT - (admin) - (9)
                 Hmmm... - (folkert) - (8)
                     Re: Hmmm... - (admin) - (7)
                         migosh. - (folkert) - (1)
                             Re: migosh. - (admin)
                         Its not plists though - (tuberculosis) - (4)
                             Re: Its not plists though - (admin) - (3)
                                 Re: Its not plists though - (tuberculosis) - (2)
                                     If that's the only change it's easy enough to make. -NT - (admin) - (1)
                                         Not sure that's the only one - (tuberculosis)
         I give up. - (FuManChu) - (4)
             ? - (admin) - (3)
                 It's a data format that has to be parsed by code. - (FuManChu) - (2)
                     Every data format has to be parsed. - (admin) - (1)
                         I'm misleading myself - (FuManChu)
         I may be missing something - (drewk) - (2)
             Re: I may be missing something - (admin) - (1)
                 We just did this today - (drewk)

But don't you come 'round here thinking you can add to the Holy Fortune Cookies.
147 ms