当前位置: 首页 > news >正文

网站备案协议书网站开发合同要注意哪些

网站备案协议书,网站开发合同要注意哪些,中山市网站建设哪家好,手机搭建wapJavaScript对象表示法#xff08;JavaScript Object Notation#xff0c;JSON#xff09;已经成为RESTful接口设计中的事实标准。 JSON数据格式使得应用程序可以通过RESTful API等方式在网络上进行数据通信。 REST: 表现层状态转化#xff08;REpresentation State Transf…JavaScript对象表示法JavaScript Object NotationJSON已经成为RESTful接口设计中的事实标准。 JSON数据格式使得应用程序可以通过RESTful API等方式在网络上进行数据通信。 REST: 表现层状态转化REpresentation State Transfer 同样由对象、数组、名称-值 结构体组成。JSON是一种技术标准。 JSON 示例1-1 firstValidObject.json {“thisIs”: “My first JSON document”} “thisIs”为名称其值为My first JSON document” JSON 示例1-2 firstValidArray.json [ “also”, “a”, “valid”, “JSON”, “doc” ] 名称-值对数据属性和值的一组对应 对象名称-值对的无序集合 数组值的有序集合 名称-值对示例 JSON 示例1-3 nameValue.json [ “conference”: “OSCON”, “speechTitle”: “JSON at Work”, “track”: “Web APIs” ] 每一个键名如conference”是一个字符串必须由双引号括起来。 “OSCON”是值值的类型有很多。 对象示例 JSON 示例1-4 simpleJsonObject.json { “address”: { “line1”: “555 Any Street”, “city”:”Denver”, “stateOrProvince”: “CO”, “zipOrPostalcode”:”80202”, “country”:”USA” } } 带有内嵌数组的对象 JSON 示例1-5 jsonObjectNestedArray.json { “speaker”: { “firstName”: “Larson”, “lastName”:”Richard”, “topics”: [“JSON”,”REST”,”SOA”] } } 内嵌其他对象的对象 JSON 示例1-5 jsonObjectNestedArray.json { “speaker”: { “firstName”: “Larson”, “lastName”:”Richard”, “topics”: [“JSON”,”REST”,”SOA”] } } 内嵌其他对象和数组的数组示例 JSON 示例1-7 jsonArray.json { “presentations”: [ { “title”: “JSON at Work: Overview and Ecosystem”, “length”:”90 minutes”, “abstract”: [“JSON ks more than just a simple replacement for XML when”, ”you make an AJAX call.” ], “track”:”Web APIs” }, { “title”: ”RESTful Security at Work”, “length”: ”90 minutes”, “abstract”: [ “You’ve been working with RESTful Web Services for a few years”, “now, and you’d like to know if your services are secure.” ], “track”: “Web APIs” } ] } null并不是一种值的类型而是JSON中一种特殊值。null不由引号 括起来表示某个键或属性没有值用作占位符。 日期属性的值 JSON 示例1-8 jsonDateFormat.json { “dateRegustered”: “2014-03-01T23:46:11-05:00” } JSON.stringify()和JSON.parse()进行序列化/反序列化操作将外部信息转换成自身可理解的数据结构 JSON Schema是对JSON文档/消息中的内容、结构与格式的声明。JSON Schema可以校验JSON文档进行语义校验。 JSON Schema声明示例 JSON 示例1-9 ex-1-basic-schema.json { “$schema”: ”http://json-schema.org/draft-04/schema#”, “type”: “object”, “properties”: { “email”: { “type”: “string” }, “firstName”:{ “type”: “string” }, “lastName”:{ “type”: “string” } } } 与上述Schema对应的JSON实例 JSON 示例1-10 ex-1-basic.json { “email”: “larsonrichardecratic.com”, “firstName”:“Larson”, “lastName”: “Richard” } 禁止JSON中出现额外字段 “additionalProperties”: false 确保JSON中包含所有的必须字段 “required”: [“email”, “firstName”, “lastName”, “postedSlides”, “rating”] 使用JSON SChema来校验数组 JSON 示例1-11 basic-types-validation-req-schema.json { “$schema”: ”http://json-schema.org/draft-04/schema#”, “type”: “object”, “properties”: { “tags”: { “type”: “array”, “items”: { “type”: “string” } } }, “additionalProperties”: false, “required”: [“tags”] } 非法示例tags数组中不能包含整数无法通过校验 JSON 示例1-12 array-simple-invalid.json { “tags”: [“fred”1] } 通过使用patternProperties关键词JSON schema中的模式属性可以基于正则表达式来声明部分重复的字段名。 JSON 示例1-11 basic-types-validation-req-schema.json { “$schema”: ”http://json-schema.org/draft-04/schema#”, “type”: “object”, “properties”: { “city”: { “type”: “string” }, “state”: { “type”: “string” },“zip”:{ “type”: “string” }, “country”: { “type”: “string” } }, “patternProperties”:{ “^line[1-3]$”:{ “type”: “string” } }, “additionalProperties”: false, “required”: [“city”, “state”, “zip”, “country”, “line1”] } 以上示例正则表达式^line[1-3]$允许JSON文档中出现以下地址字段line1、line2、line3其中 【^】表示字符串开头 【line】表示字符串”line” [1-3]表示1至3之间的一个整数 $表示字符串结尾
http://www.dnsts.com.cn/news/89585.html

相关文章:

  • 免费商城网站模板厚街镇网站仿做
  • 邢台建设企业网站价格wordpress 文章密码保护
  • 怎样建立一个自己的网站石家庄企业网站建设公司
  • 上海网络网站建设临河做网站
  • 网站建设启动大会做h5好点的网站
  • 广州正规网站建设哪家好软考哪个证书最有用
  • cadisen卡迪森手表网站如何看一个网站用什么程序做的
  • 网站 谁建设谁负责辽宁建设工程信息网ic
  • 网站上做旅游卖家要学什么软件柳州游戏网站建设
  • 高端网站制作 上海wordpress循环评论
  • 公司网站怎么登录wordpress 4.6.1 exp
  • 株洲建设局网站合肥学习做网站
  • 商务办公名片北京网站建设专业乐云seo
  • 怎么推广自己做的网站哪个网站做app
  • sqlite做网站数据库网站建设初步规划
  • 云南城市建设职业学院网站东胜区建设局网站
  • 技术支持:淄博网站建设企业门户网站系统下载
  • 玩具网站建设策划书流程wordpress如何更换域名
  • 建设网站是什么样的黑龙江省建设网官方网站
  • 京东网上购物官方网站快速开发平台开源
  • 中国网站排名 优帮云微信怎么开店铺
  • 怎么做优化网站排名网站建设需求说明
  • 响应式网站的原理公司内部网站怎么建设
  • 文化墙设计网站推荐餐饮店怎么做营销和推广
  • 深圳网站seo设计山东省建设建设监理协会网站
  • 安阳专业做网站公司需要多长时间
  • 网站挂马怎么处理厦门医院网站建设
  • 数字资产交易网站开发寿光公司做网站
  • 手机免费做网站四川建设网官网安全员证书查询
  • 广州企业网站建设公司哪家好企业建设网站公司名称大全