【源码】JSON/UBJSON编解码工具箱JSONlab version 1.5.0.0

在这里插入图片描述
JSONlab是"iso2mesh"工具箱的组成部分之一。

JSONlab is a component of the"iso2mesh" toolbox (http://iso2mesh.sf.net).

关于JSONlab的最新信息,请访问它的主页:http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab

For the latest information regardingJSONlab, please visit its homepage at http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab

JSON(JavaScript Object Notation)是一种高度可移植的、人类可读的、“轻量级”的文本格式,用于表示复杂和分层数据。

JSON (JavaScript Object Notation) is ahighly portable, human-readable and “fat-free” text format torepresent complex and hierarchical data.

JSON的功能与XML同样强大,但更为简洁。

It is as powerful as XML, but less verbose.

JSON格式广泛用于应用程序中的数据交换,对于Ajax和Web2.0的巨大成功至关重要。

JSON format is widely used fordata-exchange in applications, and is essential for the wild success of Ajax and Web2.0.

关于JSON的更多知识请参考网站:http://www.json.org/json-zh.html

UBJSON(通用二进制JSON)是一种二进制JSON格式,特别针对紧凑的文件大小和更好的性能进行了优化,同时保持语义与基于文本的JSON格式一样简单。

UBJSON (Universal Binary JSON) is a binaryJSON format, specifically optimized for compact file size and betterperformance while keeping the semantics as simple as the text-based JSONformat.

使用UBJSON格式允许以灵活和可扩展的结构包装复杂的二进制数据,能够处理复杂和大型数据集,而不会由于文本转换而造成准确度损失。

Using the UBJSON format allows to wrapcomplex binary data in a flexible and extensible structure, making it possibleto process complex and large dataset without accuracy loss due to textconversions.

未来的科学研究中,JSON和UBJSON将作为主流数据交换格式的一部分。

We envision that both JSON and its binaryversion will serve as part of the mainstream data-exchange formats forscientific research in the future.

它将通过其它流行文件规范实现灵活性和通用性,如HDF5,从而显著降低复杂性,并提高性能。

It will provide the flexibility andgenerality achieved by other popular general-purpose file specifications, suchas HDF5, with significantly reduced complexity and enhanced performance.

JSONlab是一个免费的基于MATLAB语言的开源JSON/UBJSON编解码器。

JSONlab is a free and open-sourceimplementation of a JSON/UBJSON encoder and a decoder in the native MATLABlanguage.

JSONlab可以用于将MATLAB数据结构(数组、结构、单元、结构数组和单元数组)转换为JSON/UBJSON格式的字符串,或者将JSON/UBJSON文件解码为MATLAB数据结构。

It can be used to convert a MATLAB datastructure (array, struct, cell, struct array and cell array) into JSON/UBJSONformatted strings, or to decode a JSON/UBJSON file into MATLAB data structure.

JSONlab支持MATLAB和GNU Octave。

JSONlab supports both MATLAB and GNU Octave(a free MATLAB clone).

JSONlab提供的主要函数如下:

loadjson.m:JSON解码函数

savejson.m:JSON编码函数

loadubjson.m:UBJSON解码函数

saveubjson.m:UBJSON编码函数

源码下载地址:

http://page5.dfpan.com/fs/8l5cej923291c279160/

更多精彩文章请关注微信号:在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42825609/article/details/83743583
今日推荐