Archive for 'JSON'
JSON 2.0: Libraries and browser support
January 31, 2008 | Filed under: JSON
John is at it again, writing a piece on recent news surrounding JSON.
He links to an updated library by Douglas Crockford, …
Work with JSON data via SQL
January 26, 2008 | Filed under: JSON
A javascript library that allows access to JSON data via SQL syntax, for example: jsonsql.query(”select title,url from json.channel.items where (category==’javascript’ || category==’vista’) order by title,category asc limit 3″,json);
Transformar una cadena a una estructura JSON en javascript
January 19, 2008 | Filed under: JSON
Ayuda de como utilizar JSON en javascript de una forma muy simple
JSONLib: JSON Extensions a la E4X
January 18, 2008 | Filed under: JSON
Nicholas C. Zakas wanted to keep JSON out of JavaScript. He has patterned a new form of JSON support on E4X and wrote it up.
Nichole wants:
The addition of two new global types: JSON and JSONList. JSON represents a JSON object while JSONList represents a JSON array.
Both types have a toJSONString() method that correctly encodes an object into a …
JsonSQL: JSON parser, SQL style
January 16, 2008 | Filed under: JSON
Trent Richardson has released JsonSQL, a JavaScript library that allows you to muck around with JSON as though it is a datastore:
The API
PLAIN TEXT
JAVASCRIPT:
jsonsql.query(”select * from json.channel.items order by title desc”, json);
jsonsql.query(”select title,url from json.channel.items where (category==’javascript’ || category==’vista’) order by title,category asc limit 3″, json);
Usage
Only Select statements are supported
The requested fields may be a “*” or …
Apache CouchDB: Congrats to IBM and Damian Katz
January 3, 2008 | Filed under: JSON
CouchDB has been getting people re-energized about DB stuff recently. Some got gung-ho about the OODBMS and that fizzled and people went back to the “ug, I guess we just do the SQL thing and be done with it… and maybe use an ORM if we really hate it”.
Then the Couch came along and had us …
UIDL: User Interface Description Language
December 30, 2007 | Filed under: JSON
UIDL (User Interface Description Language) aims to create a scriptable, JavaScript based language for expressing complex user interfaces. The main features of a UIDL page are the ability to create complex user interfaces (using Swing based widgets) and to communicate asynchronously with server based objects (using the JSON-RPC protocol).
Object Oriented JavaScript - Should You Use It? - Part 2
December 21, 2007 | Filed under: JSON
This post gets to the meat and potatoes and shows code example of how to program in Object Oriented JavaScript and why it is useful. It also touches on how Object Oriented Programming differs from Java and C++ (i.e. class structure). The post also shows an example of how this would pertain to JSON.
How to use JSON-RPC and HTML forms with Meteora
December 14, 2007 | Filed under: JSON
This is an example that uses Meteora (http://meteora.astrata.com.mx), a modified version of Mootools (http://mootools.net), to illustrate how easy is to develop Buzzword Compliant (A.K.A. AJAX) web applications without having to write Javascript.
Brendan Eich: JavaScript 2 evolution and the myth busting Tracing JIT
November 30, 2007 | Filed under: JSON
I love watching Brendan Eich speak. You know that before long you will be deep into a topic, and if you slip up for a minute you will be hopelessly behind. You have to listen closely. Even if you do, you will probably think that you missed a lot of it.
Brendan has posted his slides …
A JSON Load Object without using Eval
November 21, 2007 | Filed under: JSON
David Hurth of Ajaxonomy.com shows the code to create a JavaScript object that is used to create JSON without using eval.
Cross Domain XHR W3C proposal
November 21, 2007 | Filed under: JSON
The W3C has a new proposal titled Enabling Read Access for Web Resources which defines access control primitives to be used for cross domain XHR.
You can set control via a HTTP header:
PLAIN TEXT
HTML:
Access-Control: allow <*.example.org> exclude <*.public.example.org>
or an XML processing instruction:
PLAIN TEXT
XML:
<?access-control allow=”allow.example.org” deny=”deny.example.org”?>
so no cross_domain.xml.
Kris Zyp has written up his thoughts on …
JavaScript coding basics
November 20, 2007 | Filed under: JSON
This is not one of those dummy “idiot’s guides”, despite the article is called “JavaScript coding basics” it covers such advanced topics as:* effective work with JS objects;* JSON Java Scriptt Object Notation);* DOM operations with comparison DOM against innerHTML;* events and different ways to create and attach them;* fast JS code.
Squirrel IoC: Dependency Injection for JavaScript
November 19, 2007 | Filed under: JSON
Mark Forster is a fan of IoC from his days in Spring-land. He found that he was “writing endless amount of code to just instantiate objects and wiring up dependencies in these objects” and decided that what was in order was Squirrel IoC.
To see it in action, we can look at a simple example. There are three files at …
TinyMCE 3 First Look
November 2, 2007 | Filed under: JSON
We got our first look at a rewritten Tiny MCE 3 today.
From a pure feature point of view, this release might not be very impressive, but if you are interested in JavaScript and do a lot of custom development, this is the release you have been waiting for. One of the main focuses for the new 3.x branch is …
Pownce announces new API
October 31, 2007 | Filed under: JSON
The Pownce team released version 1 of the Pownce API yesterday. The API allows for various methods of retrieving Pownce-related data such as notes, users or fans and allows for return data to be formatted as XML or JSON. Since the API will be evolving quickly, the team has also taken the added step of providing versioning for …
Flash & Javascript :communicate thru Objects (and why JSON should be ESON)
October 27, 2007 | Filed under: JSON
Flash allows to create rich web interface : very cool effects, 3D animations,data-driven websites. Actionscript,language based on ECMAScript, offers a lot of power to Flash applications.Here, we will be using Actionscript 3 to see how we can communicate with Javascript objects thru the literal notation and DOM !
omar kilani - projects - php-json
October 23, 2007 | Filed under: JSON
php-json is an extremely fast PHP C extension for JSON (JavaScript Object Notation) serialisation. It conforms to the JSON specification.
A little Flickr hacking (in a good way)
October 22, 2007 | Filed under: JSON
Christian Heilmann is at it again posting an entry about a neat method of grabbing Flickr photos without having to using the Flickr API:
Here you’ll learn how to get Flickr photos into your JavaScript solutions without having to resort to using the full API. As this is a hack you will only get the latest 20 photos, if …
JSON News: JSON Schema and JSON Referencing
October 11, 2007 | Filed under: JSON
Kris Zyp has been plugging away on a couple of interesting JSON topics:
JSON Referencing Schemes
There has been a lot of discussion about handling referencing schemes, so Kris has gotten the various ideas and summarized them.
He takes the following object call:
PLAIN TEXT
JAVASCRIPT:
obj = {name:”foo”, child: {”name” : “bar”}};
obj.child.parent = obj;
and shows:
PLAIN TEXT
JAVASCRIPT:
// fixups scheme
{”result”:{”name”:”foo”, “child”: {”name” …
How to: Parse JSON with jQuery and JavaScript
October 2, 2007 | Filed under: JSON
JSON must rely on JavaScript’s object notation. As such, some custom JavaScript will always be required (i.e. - no jQuery selectors). Some progress has been made in addressing the overarching need, but I maintain a high level of specificity in the following snippet.
jabsorb: A new JSON-RPC for Java
September 24, 2007 | Filed under: JSON
Arthur Blake (with friends) has forked JSON-RPC-Java and has created jabsorb:
The project goal for jabsorb is to maintain (and hopefully improve) the practicality and beautiful simplicity that makes JSON-RPC-Java a great library, while also adding new common sense features, more test cases, and more documentation to make the library better for everyone.
jabsorb also aims to add more advanced …
JSON
September 15, 2007 | Filed under: JSON
The idea of JSON (JavaScript Object Notation) is to make the response a specific data structure that can be easily parsed by the JavaScript code.
CrossSafe: Secure Cross Domain JSON
September 10, 2007 | Filed under: JSON
Kris Zyp has just released a beta version of CrossSafe, a tool that provides secure cross domain JSON requests and partially implements the JSONRequest specification (the get and cancel methods).
You can also see a demonstration where you can pull information from Yahoo’s web services, Brad Neuberg’s transclusion web service, and a JSON object database at jspon.org, while staying …
Protoscript: Prototype web apps with a JSON DSL
September 7, 2007 | Filed under: JSON
Bill Scott of Yahoo! showed us an early version of Protoscript at The Ajax Experience. He got some good feedback, and has just announced the first version. He will be speaking on this and more at the upcoming Ajax Experience show, so come to chat with him about it.
What is Protoscript?
Protoscript is a …
JSONPath: XPath for JSON Structures
September 4, 2007 | Filed under: JSON
Stefan Gössner thought that there should be a benefit in having some kind of XPath4JSON. He ended up creating JSONPath, “a lightweight component that allows to find and extract relevant portions out of JSON structures on the client as well as on the server.”
Given the JSON structure:
PLAIN TEXT
JSON:
{ "store": {
"book": [
…

