Coder Social home page Coder Social logo

cb2json's Introduction

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

cb2json's People

Contributors

devstopfix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.