JavaScript and JSON Essentials : Build light weight, scalable, and faster web applications with the power of JSON, 2nd Edition.
JSON is an established and standard format used to exchange data. This book shows how JSON plays different roles in full web development through examples. By the end of this book, you'll have a new perspective on providing solutions for your applications and handling their complexities.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2018.
|
Edición: | 2nd ed. |
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Dedication; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Getting Started with JSON; JSON, a data exchange format; The Hello World program with JSON; How is JSON stored in memory?; Datatypes in JSON; Languages that support JSON; JSON implementation in PHP; JSON implementation in Python; Summary; Chapter 2: The JSON Structures; Inserting external JavaScript; Accessing objects in JSON; Performing complex operations; Modifying JSON; Summary; Chapter 3: AJAX Requests with JSON; Basic web operations; Synchronous vs. asynchronous.
- Requirements for AJAXSetting up a node.js server; Hosting JSON; Making your first AJAX call; Traditional callbacks; Handling asynchronousity using a promise; New ECMAScript generators; Parsing JSON data; Summary; Chapter 4: Cross-Domain Asynchronous Requests; The API story; Making GET and POST AJAX calls with JSON data; The problem with cross-domain AJAX calls; Introduction to JSONP; Implementation at server-side; Implementing JSONP at client-side (browsers); Summary; Chapter 5: Debugging JSON; Using the developer tools; Validating JSON; Formatting JSON; Summary.
- Chapter 6: Building the Carousel ApplicationSetting up the Carousel application; Building the JSON file for the Carousel application; Creating the Carousel application with jQuery Cycle; Introducing Bootstrap; Setting up Bootstrap; Bootstrap responsiveness and styles; Summary; Chapter 7: Alternate Implementations of JSON; Dependency management; Using composer.json in PHP; Node.js using the package.json registry; JSON for storing application configurations; Configuration in PHP and Python; Configuration in frontend frameworks
- Angular 5; Linting with tslint.json.
- Configuring TypeScript using tsconfig.json Using package.json and package-lock.json files; Using the angular-cli.json file; JSON for storing application metadata; Metadata in Angular 5; Constants in Node.js; Template embedding; Comparisons with YAML; Summary; Chapter 8: Introduction to hapi.js; Basic server setup using JSON; Using JSON metadata and constants; Configuring API using JSON; Configuring a plugin in hapi; Testing the APIs using POSTMAN; Testing hapi server APIs using POSTMAN; JSON beneath POSTMAN; Summary; Chapter 9: Storing JSON Documents in MongoDB; Setting up MongoDB.
- Connecting the hapi app with MongoDBJSON versus BSON; Collections; MongoDB shell; Inserting a JSON document; Retrieving a JSON document; JSON-based schemas in MongoDB; Summary; Chapter 10: Configuring the Task Runner Using JSON; What is a task runner?; Introducing gulp.js; Creating tasks in gulp.js; Writing a unit test; Automation testing; Gulp JSON configuration; Summary; Chapter 11: JSON for Real-Time and Distributed Data; Using JSON with Socket. IO; Designing the board; Setting up the Socket. IO server; How Socket. IO works; Setting up the Socket. IO client; Using JSON with Apache Kafka.