Copybook to JSON conversion
Java
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
src Basic functionality. Sep 26, 2012
.gitignore Basic functionality. Sep 26, 2012
LICENSE Read-me. Sep 26, 2012
README.md Put build info into readme Sep 28, 2012
pom.xml Put build info into readme Sep 28, 2012

README.md

cb2json

Copybook to JSON conversion.

This library converts a fixed-width data stream into its JSON equivalent using a Copybook to define both structures.

Install

git clone https://github.com/devstopfix/cb2java.git
cd cb2java
mvn install
cd ..
git clone https://github.com/devstopfix/cb2json.git
cd cb2json
mvn install

Include the JAR file in your Java project pom.xml:

<dependency>
    <groupId>net.devstopfix.cb2json</groupId>
    <artifactId>cb2json</artifactId>
    <version>1.1</version>
</dependency>

or your Leiningen project.clj:

[net.devstopfix.cb2json/cb2json "1.1"]

Workflow

  • Create an instance of the Copybook class using the CopybookParser object or the Copybooks helper
  • Use the functions of CB2JSON, one parameter will be your Copybook, the others will be your input and output streams

Roadmap

This library is currently in the first of three versions. The functionality remains the same but the implementation details and performance vary:

Version 1

A simple prototype that makes many internal data conversions:

Version 2

Possible improvements:

Version 3