Code Monkey home page Code Monkey logo

Comments (3)

irobayna avatar irobayna commented on May 16, 2024

@rajeshyogeshwar not out of the box as far as I know. This could be an interesting feature

from stupidedi.

kputnam avatar kputnam commented on May 16, 2024

Yes, you can absolutely implement this, but it's intentionally not included with the library. Have a look at the two files in lib/stupidedi/writer for examples of converting an arbitrary X12 syntax tree to another format (either HTML or serialized X12, both of these are just fancy Strings in the end).

Those two writers traverse any X12 document and format them in a generic way (it works for any grammar, for any edition of X12, etc). Alternatively, if you're targeting a specific X12 grammar you can use the Navigation API to explicitly select the parts of the syntax tree you're interested in for that given grammar. Feel free to file issues if you get stuck somewhere.

I'm hesitant about encouraging you to submit a pull request to add this feature to the library because it will be difficult to solve the problem in general -- there is no standard JSON representation for X12 documents, so your patch might solve your use case but not another person's. However, it would be a good demo for other users to see how to use the library, so I'd happily place it in the notes directory if you want to share it.

from stupidedi.

 avatar commented on May 16, 2024

Sure, I will start work on it and if I reach my goal will share it with you. Thanks for responses.

from stupidedi.

Related Issues (20)

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.