在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:CleverCloud/json2caseclass开源软件地址:https://github.com/CleverCloud/json2caseclass开源编程语言:JavaScript 77.1%开源软件介绍:json 2 case classKickstart your scala API client by turning JSON into case classes. Try it at http://json2caseclass.cleverapps.io Use casesWhen interacting with 3rd party json-based APIs from scala, modelling the API's responses with case classes can come in handy. If the JSON exhibits some properties (homogenous lists, for instance), it's easy to create a case class with the same structure. With some deserialization magic it's easier to deal with the API's responses.
However it's tedious to manually copy the json structure into case classes. json 2 case class automatically generates case classes from JSON (if possible). Featuresjson 2 case class can generate
ToDoDue to the arity limitation of 22 values, some JSON objects can't be encoded with case classes. A Map[String,T] fallback is on the works. The code is on the project but not activated : need a UI support to choose between map and object |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论