ninny-json:JSON类型类,知道空字段和缺席字段之间的区别-源码

上传者: 42181693 | 上传时间: 2021-02-26 11:05:27 | 文件大小: 70KB | 文件类型: ZIP
没有不为空 ninny-json是一项实验,旨在查看JSON类型类在不存在的JSON字段和具有null值的字段之间进行区分时的外观。 该项目确实包含其自己的AST,但是这里的重点实际上不是引入新的AST或研究直接操纵AST的人体工程学。 因此,包含的AST保持简单。 为什么不使用json4s这个项目创建来提供一个统一的AST? 继续阅读。 为什么这么重要? 原则上,我们希望我们的库尽可能具有表现力。 实际上,当今库的局限性使得很难或不可能实现或。 是否将字段包含在最终JSON中还取决于JSON序列化程序的配置(是否包含空值),而不是AST。 当AST与JSON输出不匹配时,就会出现可测试性问题。 图书馆今天做什么? 让我们看一下三个流行的库,看看它们如何处理Option[A]与JSON之间的转换。 json4s json4s使用以下类型类 trait Reader [ T ] {

文件下载

资源详情

( 53 个子文件 70KB ) ninny-json:JSON类型类,知道空字段和缺席字段之间的区别-源码
ninny-json-master
.travis.yml 221B
USERGUIDE.md 3.89KB
mill 1.60KB
.github
FUNDING.yml 718B
ninny
test
src
io
github
kag0
ninny
example
Userguide.scala 5.12KB
Example.scala 1.91KB
userguide
DomainFrom.scala 1.21KB
FullAuto.scala 338B
Updating.scala 272B
DomainTo.scala 952B
Reading.scala 1.61KB
Writing.scala 918B
SemiAuto.scala 451B
JsonSpec.scala 15.30KB
UpdateSpec.scala 806B
src
io
github
kag0
ninny
jawn
package.scala 861B
JsonException.scala 130B
Auto.scala 547B
ast
package.scala 4.46KB
ToJsonInstances.scala 3.44KB
package.scala 3.75KB
Update.scala 1.12KB
FromJson.scala 1.13KB
ToJson.scala 745B
FromJsonInstances.scala 5.17KB
Json.scala 376B
_config.yml 27B
ci
deploy.sh 369B
LICENSE 1.18KB
.mill-version 5B
.gitignore 52B
HOWTORUNME.md 104B
README.md 8.18KB
.editorconfig 91B
coverage
io.github.kag0.ninny.ast.html 3.99KB
index.html 393B
overview.html 17.03KB
io.github.kag0.ninny.html 12.83KB
io
github
kag0
ninny
jawn
package.scala.html 6.96KB
ToJsonInstances.scala.html 26.42KB
ast
package.scala.html 14.34KB
package.scala.html 35.63KB
FromJsonInstances.scala.html 59.46KB
ToJson.scala.html 5.44KB
Json.scala.html 3.69KB
FromJson.scala.html 5.80KB
packages.html 1.84KB
io.github.kag0.ninny.jawn.html 3.31KB
build.sc 2.16KB
play-compat
test
src
io
github
kag0
ninny
compat
PlayCompatSpec.scala 1.38KB
src
io
github
kag0
ninny
compat
PlayCompat.scala 1.91KB
README.md 739B
.scalafmt.conf 29B
[{"title":"( 53 个子文件 70KB ) ninny-json:JSON类型类,知道空字段和缺席字段之间的区别-源码","children":[{"title":"ninny-json-master","children":[{"title":".travis.yml <span style='color:#111;'> 221B </span>","children":null,"spread":false},{"title":"USERGUIDE.md <span style='color:#111;'> 3.89KB </span>","children":null,"spread":false},{"title":"mill <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"FUNDING.yml <span style='color:#111;'> 718B </span>","children":null,"spread":false}],"spread":true},{"title":"ninny","children":[{"title":"test","children":[{"title":"src","children":[{"title":"io","children":[{"title":"github","children":[{"title":"kag0","children":[{"title":"ninny","children":[{"title":"example","children":[{"title":"Userguide.scala <span style='color:#111;'> 5.12KB </span>","children":null,"spread":false},{"title":"Example.scala <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"userguide","children":[{"title":"DomainFrom.scala <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"FullAuto.scala <span style='color:#111;'> 338B </span>","children":null,"spread":false},{"title":"Updating.scala <span style='color:#111;'> 272B </span>","children":null,"spread":false},{"title":"DomainTo.scala <span style='color:#111;'> 952B </span>","children":null,"spread":false},{"title":"Reading.scala <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"Writing.scala <span style='color:#111;'> 918B </span>","children":null,"spread":false},{"title":"SemiAuto.scala <span style='color:#111;'> 451B </span>","children":null,"spread":false}],"spread":true},{"title":"JsonSpec.scala <span style='color:#111;'> 15.30KB </span>","children":null,"spread":false},{"title":"UpdateSpec.scala <span style='color:#111;'> 806B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"io","children":[{"title":"github","children":[{"title":"kag0","children":[{"title":"ninny","children":[{"title":"jawn","children":[{"title":"package.scala <span style='color:#111;'> 861B </span>","children":null,"spread":false}],"spread":true},{"title":"JsonException.scala <span style='color:#111;'> 130B </span>","children":null,"spread":false},{"title":"Auto.scala <span style='color:#111;'> 547B </span>","children":null,"spread":false},{"title":"ast","children":[{"title":"package.scala <span style='color:#111;'> 4.46KB </span>","children":null,"spread":false}],"spread":false},{"title":"ToJsonInstances.scala <span style='color:#111;'> 3.44KB </span>","children":null,"spread":false},{"title":"package.scala <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"Update.scala <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"FromJson.scala <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"ToJson.scala <span style='color:#111;'> 745B </span>","children":null,"spread":false},{"title":"FromJsonInstances.scala <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"Json.scala <span style='color:#111;'> 376B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"_config.yml <span style='color:#111;'> 27B </span>","children":null,"spread":false},{"title":"ci","children":[{"title":"deploy.sh <span style='color:#111;'> 369B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":".mill-version <span style='color:#111;'> 5B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 52B </span>","children":null,"spread":false},{"title":"HOWTORUNME.md <span style='color:#111;'> 104B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 8.18KB </span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":"coverage","children":[{"title":"io.github.kag0.ninny.ast.html <span style='color:#111;'> 3.99KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 393B </span>","children":null,"spread":false},{"title":"overview.html <span style='color:#111;'> 17.03KB </span>","children":null,"spread":false},{"title":"io.github.kag0.ninny.html <span style='color:#111;'> 12.83KB </span>","children":null,"spread":false},{"title":"io","children":[{"title":"github","children":[{"title":"kag0","children":[{"title":"ninny","children":[{"title":"jawn","children":[{"title":"package.scala.html <span style='color:#111;'> 6.96KB </span>","children":null,"spread":false}],"spread":false},{"title":"ToJsonInstances.scala.html <span style='color:#111;'> 26.42KB </span>","children":null,"spread":false},{"title":"ast","children":[{"title":"package.scala.html <span style='color:#111;'> 14.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.scala.html <span style='color:#111;'> 35.63KB </span>","children":null,"spread":false},{"title":"FromJsonInstances.scala.html <span style='color:#111;'> 59.46KB </span>","children":null,"spread":false},{"title":"ToJson.scala.html <span style='color:#111;'> 5.44KB </span>","children":null,"spread":false},{"title":"Json.scala.html <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false},{"title":"FromJson.scala.html <span style='color:#111;'> 5.80KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"packages.html <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"io.github.kag0.ninny.jawn.html <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false}],"spread":false},{"title":"build.sc <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"play-compat","children":[{"title":"test","children":[{"title":"src","children":[{"title":"io","children":[{"title":"github","children":[{"title":"kag0","children":[{"title":"ninny","children":[{"title":"compat","children":[{"title":"PlayCompatSpec.scala <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"src","children":[{"title":"io","children":[{"title":"github","children":[{"title":"kag0","children":[{"title":"ninny","children":[{"title":"compat","children":[{"title":"PlayCompat.scala <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"README.md <span style='color:#111;'> 739B </span>","children":null,"spread":false}],"spread":false},{"title":".scalafmt.conf <span style='color:#111;'> 29B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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