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

网站备案协议书做ppt好的网站

网站备案协议书,做ppt好的网站,php 中英双语网站源码,在线做带字头像的网站JavaScript对象表示法#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.hkea.cn/news/14485295/

相关文章:

  • 专门做生鲜的网站wordpress手机版网页
  • 比较好的公司网站新手电商运营从哪开始学
  • 做房产网站需要多少钱新手做地方门户网站
  • 模块建站平台山西省煤炭厅基本建设局网站
  • 长春网站建设公司怎么样公司网页制作模板
  • 东莞品牌营销型网站建设短网址网站建设
  • wordpress模版wap网站优化
  • wordpress怎么修改域名wordpress哪种主页更利于seo
  • 网站加入搜索引擎怎么做东昌网站建设费用
  • 在线推广网站的方法有哪些网站建设 东八区
  • 个人网站开发是学什么语言环保行业网站建设
  • 自己做公司网站需要什么各大城市网站哪里做
  • 免费网站怎么样宿州网站公司
  • 免费自助建站服务网页链接加密
  • 塔城建设局网站普定县建设局网站
  • 公司做网站需要备案吗网页制作教程课件
  • 个人兴趣图片集网站建设企业黄页信息查询网
  • 珠海易注册网站wordpress search.php
  • 网站后台更新后前台没有同步更新优惠券购物网站怎么做
  • 网站建设报价表2345网址导航主页
  • 做百度网站费用室内设计平面图讲解
  • 阿里云 网站根目录阿里巴巴官网app
  • 网站如何设置微信支付功能代理服务器怎么设置
  • 网站建站分辨率万网注册域名查询官方网站
  • 手提包 东莞网站建设网站admin密码忘记了怎么办
  • 苏州城乡建设局网站seo学徒招聘
  • 福建省建设局网站如何开网店详细教程
  • 如何做网站跳转登入厦门招聘网
  • 宁乡的网站建设网站建设接口开发
  • 礼泉住房和城乡建设局网站网站没询盘怎么做推广