shakespeares-monkey:基于模板的JSON随机数据生成-源码

上传者: 42143806 | 上传时间: 2021-06-29 19:22:36 | 文件大小: 43KB | 文件类型: ZIP
从模板生成随机 JSON 文档。 模板本身是一个 JSON 文档。 模板 "field" : "value", “value”是输出中“field”的值。 "field" : {"$str": { "minlength":2,"maxlength":64 } } 为“字段”生成长度为 2-64 的字符串值 "field" : { "$choose" : [ 1,2,3,4,5,6,7 ] } “字段”值是从数组中的值之一中随机选择的。 "field" : { "$optional" : { "percent":50, "value": { "$choose" : [ "true","false" ] }}} “字段”是可选的,以 50% 的概率存在于输出文档中。 如果存在,则其值是“真”和“假”之间的随机选择。 "field" : { "$date" : {

文件下载

资源详情

[{"title":"( 30 个子文件 43KB ) shakespeares-monkey:基于模板的JSON随机数据生成-源码","children":[{"title":"shakespeares-monkey-master","children":[{"title":"smonkey <span style='color:#111;'> 832B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"assembly","children":[{"title":"assembly.xml <span style='color:#111;'> 365B </span>","children":null,"spread":false}],"spread":true},{"title":"resources","children":[{"title":"default.properties <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"redhat","children":[{"title":"smonkey","children":[{"title":"RndLong.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"Generator.java <span style='color:#111;'> 1008B </span>","children":null,"spread":false},{"title":"RndBool.java <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"RndInt.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"Monkey.java <span style='color:#111;'> 6.92KB </span>","children":null,"spread":false},{"title":"RndArr.java <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"RndDate.java <span style='color:#111;'> 6.28KB </span>","children":null,"spread":false},{"title":"Utils.java <span style='color:#111;'> 5.71KB </span>","children":null,"spread":false},{"title":"GeneratorRegistry.java <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"PropertyFile.java <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"Choose.java <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"RndString.java <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"Optional.java <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"run.sh <span style='color:#111;'> 46B </span>","children":null,"spread":false},{"title":"adr.properties <span style='color:#111;'> 754B </span>","children":null,"spread":false},{"title":"etc","children":[{"title":"sonar.sh <span style='color:#111;'> 487B </span>","children":null,"spread":false},{"title":"settings.xml <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"release.sh <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"onSuccess.sh <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"onFailure.sh <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"release.sh~HEAD <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 883B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 34.36KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 7.89KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"template.json <span style='color:#111;'> 836B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明