19.1.3 Generating and Parsing JSON DataFor generating and parsing JSON dịch - 19.1.3 Generating and Parsing JSON DataFor generating and parsing JSON Việt làm thế nào để nói

19.1.3 Generating and Parsing JSON

19.1.3 Generating and Parsing JSON Data
For generating and parsing JSON data, there are two programming models, which are
similar to those used for XML documents.
■ The object model creates a tree that represents the JSON data in memory. The tree
can then be navigated, analyzed, or modified. This approach is the most flexible
and allows for processing that requires access to the complete contents of the tree.
However, it is often slower than the streaming model and requires more memory.
The object model generates JSON output by navigating the entire tree at once.
■ The streaming model uses an event-based parser that reads JSON data one
element at a time. The parser generates events and stops for processing when an
object or an array begins or ends, when it finds a key, or when it finds a value.
Each element can be processed or discarded by the application code, and then the
parser proceeds to the next event. This approach is adequate for local processing,
in which the processing of an element does not require information from the rest
of the data. The streaming model generates JSON output to a given stream by
making a function call with one element at a time.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
19.1.3 tạo ra và phân tích cú pháp JSON dữ liệu
cho việc tạo và phân tích cú pháp JSON dữ liệu, có hai mô hình lập trình, mà là
tương tự như được sử dụng cho tài liệu XML.
■ mô hình đối tượng tạo ra một cây đại diện cho các dữ liệu JSON trong bộ nhớ. Cây
có thể sau đó được lái, phân tích, hoặc sửa đổi. Cách tiếp cận này là linh hoạt nhất
và cho phép cho chế biến mà đòi hỏi quyền truy cập vào các nội dung hoàn toàn của cây.
Tuy nhiên, nó thường là chậm hơn so với các mô hình trực tuyến và yêu cầu bộ nhớ nhiều hơn.
Các mô hình đối tượng tạo ra sản lượng JSON bằng cách điều hướng toàn bộ cây tại một lần.
■ mô hình trực tuyến sử dụng một sự kiện dựa trên phân tích cú pháp mà đọc dữ liệu JSON một
yếu tố tại một thời điểm. Phân tích cú pháp tạo ra sự kiện và các điểm dừng chế biến khi một
đối tượng hoặc một mảng bắt đầu hoặc kết thúc, khi nó tìm thấy một chìa khóa, hoặc khi nó tìm thấy một giá trị.
Mỗi phần tử có thể được xử lý hoặc bị loại bỏ bởi các ứng dụng mã, và sau đó các
phân tích cú pháp tiến tới sự kiện tiếp theo. Cách tiếp cận này là phù hợp để xử lý địa phương,
trong đó việc xử lý của một phần tử không yêu cầu thông tin từ phần còn lại
dữ liệu. Tạo ra các mô hình luồng JSON đầu ra đến một dòng cho bởi
thực hiện một chức năng gọi với một trong những yếu tố tại một thời điểm.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
19.1.3 Generating and Parsing JSON Data
For generating and parsing JSON data, there are two programming models, which are
similar to those used for XML documents.
■ The object model creates a tree that represents the JSON data in memory. The tree
can then be navigated, analyzed, or modified. This approach is the most flexible
and allows for processing that requires access to the complete contents of the tree.
However, it is often slower than the streaming model and requires more memory.
The object model generates JSON output by navigating the entire tree at once.
■ The streaming model uses an event-based parser that reads JSON data one
element at a time. The parser generates events and stops for processing when an
object or an array begins or ends, when it finds a key, or when it finds a value.
Each element can be processed or discarded by the application code, and then the
parser proceeds to the next event. This approach is adequate for local processing,
in which the processing of an element does not require information from the rest
of the data. The streaming model generates JSON output to a given stream by
making a function call with one element at a time.
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: