项目作者: yalions

项目描述 :
Stream Object Notation Converter to JSON, YAML, XML, JavaProps, CSV
高级语言: Scala
项目地址: git://github.com/yalions/son2.git
创建时间: 2017-03-06T19:35:09Z
项目社区:https://github.com/yalions/son2

开源协议:Apache License 2.0

下载


Build Status
Build Status
Codacy grade
Codecov
GitHub issues
License

SON2

Stream Object Notation to:

  • JSON
  • YAML
  • XML
  • Properties
    <!—-
  • CVS

—>

It is a simple application with:

  • ScalaTest for test
  • ScalaMock for mock
  • ScalaCheck for property-based testing
  • Jackson to convert json
  • JsonPath to filtering json
  • json-patch to patch json

Build

  1. cd ~
  2. git clone https://github.com/writeonly/son2.git
  3. cd son2
  4. git submodule update --init --recursive
  5. sbt clean scalafmt::test test:scalafmt::test it:scalafmt::test jacoco it:jacoco coverage test it:test assembly coverageReport && sbt coverageAggregate && sbt stats scalastyle
  6. sbt clean compile assembly

CLI

Add line to file ~/.bashrc

  1. alias son2="java -jar ~/son2/son2-clis/son2-main/target/scala-2.12/son2-main-assembly-2.8.11-SNAPSHOT.jar"
  2. alias son2o="son2 o"
  3. alias son2y="son2 y"
  4. alias son2x="son2 x"
  5. alias son2p="son2 p"

Usage

usage