1
obtener el objeto Javascript usando jQuery llamando a la función getJSON . Por ejemplo :
$ (function (URL ) {
$ getJSON ( " jsonExampleObj.js " , función ( json ) {
2
Lea el objeto. usando la siguiente función jJSON :
jJSON ( "title" ) = (function ( ) {
respuesta = { valores
: [ ] ,
< p > cuenta: 0
} ;
3
dictar cómo los objetos deben ser manejados mediante la adición de funciones Javascript adicionales , por ejemplo :
$ cada uno . . ( json.attributes , función ( i, itim ) {
if ( item.title = && " indefinido" item.title = "" ) {
response.count + + ; !
response.values [ i ] = item.title ;
} } ) ;
respuesta regreso
;
} ) () ;