Muutke küpsiste eelistusi

E-raamat: Beginning JSON

  • Formaat: PDF+DRM
  • Ilmumisaeg: 27-Feb-2015
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484202029
Teised raamatud teemal:
  • Formaat - PDF+DRM
  • Hind: 80,26 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: PDF+DRM
  • Ilmumisaeg: 27-Feb-2015
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484202029
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Beginning JSON is the definitive guide to JSON - JavaScript Object Notation - today’s standard in data formatting for the web. The book starts with the basics, and walks you through all aspects of using the JSON format. Beginning JSON covers all areas of JSON from the basics of data formats to creating your own server to store and retrieve persistent data. Beginning JSON provides you with the skill set required for reading and writing properly validated JSON data.

The first two brief chapters of the book contain the foundations of JavaScript as it relates to JSON, and provide the necessary understandings for later chapters. Chapters 3 through 12 reveal what data is, how to convert that data into a transmittable/storable format, how to use AJAX to send and receive JSON, and, lastly, how to reassemble that data back into a proper JavaScript object to be used by your program. The final chapters put everything you learned into practice.

About the Author xv
About the Technical Reviewer xvii
Acknowledgments xix
Introduction xxi
Chapter 1 JavaScript Basics
1(16)
JavaScript History
1(1)
JavaScript Essentials
2(1)
Values
2(4)
Primitive Types
2(4)
Expressions
6(4)
Operators
6(4)
Statements
10(4)
Line Terminators
10(1)
Control Statements
11(1)
Block Statements
12(1)
Truthy/Falsy
12(1)
Loop Statements
13(1)
Declarations
14(1)
Variables
14(1)
Functions
14(1)
Summary
15(2)
Key Points from This
Chapter
15(2)
Chapter 2 Special Objects
17(10)
Objects
17(1)
Objects Are Collections
17(1)
Built-in Objects
18(1)
Object
18(1)
Creating Objects
19(1)
Access Notation
19(2)
Array
21(1)
Object Literals
22(2)
Designing Literals
24(2)
The Object Literal
24(1)
The Array Literal
25(1)
Summary
26(1)
Key Points from This
Chapter
26(1)
Chapter 3 String Manipulation
27(10)
String Concatenation
27(1)
The String object
28(1)
Creating String objects
28(1)
The Interface of the String object
28(7)
length
29(1)
toString
30(1)
charAt
30(1)
indexOf
30(2)
lastIndexOf
32(1)
match
32(1)
replace
32(1)
slice
33(1)
substr
34(1)
split
34(1)
toUpperCase
35(1)
toLowerCase
35(1)
The Implicit String object
35(1)
Summary
36(1)
Key Points from This
Chapter
36(1)
Chapter 4 Introducing JSON
37(12)
History
37(1)
JSON Grammar
38(7)
Composite Structures
38(3)
JSON Values
41(4)
JSON Tokens
45(1)
Summary
46(3)
Key Points from This
Chapter
47(2)
Chapter 5 Creating JSON
49(20)
The Serialization Process---Demystified
50(2)
The JSON Object
52(13)
stringify
53(12)
Summary
65(4)
Key Points from This
Chapter
66(3)
Chapter 6 Parsing JSON
69(12)
JSON.parse
69(10)
eval
71(2)
reviver
73(6)
Summary
79(2)
Key Points from This
Chapter
79(2)
Chapter 7 Persisting JSON: I
81(20)
HTTP Cookie
82(5)
Syntax
82(5)
document.cookie
87(7)
Web Storage
94(5)
Web Storage Interface
95(4)
Summary
99(2)
Key Points from This
Chapter
99(2)
Chapter 8 Data Interchange
101(32)
Hypertext Transfer Protocol
101(9)
HTTP-Request
102(4)
HTTP Response
106(4)
Ajax
110(2)
XMLHttpRequest Interface
112(18)
Global Aspects
112(4)
The Request Aspect
116(5)
The Response Aspect
121(3)
Obtaining the Response
124(6)
Summary
130(3)
Key Points from This
Chapter
131(2)
Chapter 9 X-Origin Resources
133(26)
Same-Origin Policy
133(9)
Circumventing Same-Origin Policy
142(15)
CORS
143(5)
The Proxy
148(4)
JSONP
152(5)
Summary
157(2)
Key Points from This
Chapter
157(2)
Chapter 10 Serving JSON
159(32)
Node.JS
159(9)
Windows Installation
159(6)
Mac Installation
165(3)
Building an HTTP Server
168(3)
Node HTTP Web Server
168(2)
Node API
170(1)
Modules
170(1)
The HTTP Module
171(5)
http.createServer
172(1)
http.IncomingMessage
172(1)
http.ServerResponse
172(1)
http.Server
173(3)
CORS-Enabled Server
176(2)
JSONP Server
178(3)
The Proxy Server
181(7)
http.request
182(1)
http.Stream
183(1)
http.ClientRequest
184(4)
Summary
188(3)
Key Points from This
Chapter
188(3)
Chapter 11 Posting JSON
191(22)
Request Entity Body
191(12)
HTML Form POST
192(5)
Processing a JSON POST
197(6)
Preflight Request
203(8)
OPTIONS Request Method
204(6)
What Determines Preflight
210(1)
Summary
211(2)
Key Points from This
Chapter
211(2)
Chapter 12 Persisting JSON: II
213(30)
CouchDB
213(2)
Windows Installation
213(1)
Mac Installation
214(1)
Working with CouchDB
215(9)
Futon
215(5)
Creating Views
220(1)
Creating Our First Custom View
221(3)
Connecting Node and CouchDB
224(17)
Cradle for Node
225(1)
Working with Databases
226(1)
Cradle Database API
227(8)
Creating Documents via Cradle
235(1)
Creating Design Documents via Cradle
236(5)
Summary
241(2)
Key Points from This
Chapter
241(2)
Chapter 13 Working with Templates
243(26)
Templating Engine
243(2)
Handlebars
245(1)
Installation
245(1)
Working with Handlebars
246(13)
A Basic Expression
247(2)
The Role of <script>
249(1)
Compiling a Template
249(1)
Giving Context to Our Template
250(1)
Multiple Placeholders
251(2)
Complex JSON Structures
253(2)
Block Expressions
255(1)
Block Expressions and Arrays
256(3)
Applying Logic to Logic-less Templates
259(7)
Helpers
260(6)
Summary
266(3)
Key Points from This
Chapter
266(3)
Chapter 14 Putting It All Together
269(26)
Twitter
269(7)
Twitter Apps
269(3)
Keys and Access Tokens
272(2)
Public Stream
274(1)
Your User Access Token
274(2)
#Trending
276(1)
Node.js
276(2)
Twitter Module
276(1)
Incorporating the Twitter Module
277(1)
Streaming API (Stable)
277(1)
Statuses/Filter
277(1)
CouchDB
278(6)
Incorporating the Cradle Module
278(2)
Creating a View
280(2)
Enabling CORS
282(2)
Ajax
284(3)
Requesting Ranges
284(3)
Handlebars
287(7)
Summary
294(1)
Index 295
Ben Smith is an accomplished Technical Experience Director with many years of experience leading Web Development for well-known digital agencies. His list of contributions to the community has earned him a place as an Adobe Community Professional. As an Author, Speaker, and Judge for theFWA it should be apparent he is passionate about the web. He attributes his growth to experimentation and experience.