DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Modify JSON Data in Postgres and Hibernate 6
  • Exploring JSON Schema for Form Validation in Web Components
  • Datafaker Gen: Leveraging BigQuery Sink on Google Cloud Platform
  • Flexible Data Generation With Datafaker Gen

Trending

  • Transforming AI-Driven Data Analytics with DeepSeek: A New Era of Intelligent Insights
  • Why High-Performance AI/ML Is Essential in Modern Cybersecurity
  • Docker Model Runner: Streamlining AI Deployment for Developers
  • A Modern Stack for Building Scalable Systems
  1. DZone
  2. Data Engineering
  3. Data
  4. How to Create an EDI to JSON Transformation

How to Create an EDI to JSON Transformation

Gordon Crenshaw offers a tutorial for converting legacy EDI data into JSON using various transformation tools and techniques.

By 
Gordon Crenshaw user avatar
Gordon Crenshaw
·
Oct. 28, 16 · Tutorial
Likes (1)
Comment
Save
Tweet
Share
20.0K Views

Join the DZone community and get the full member experience.

Join For Free

with the exploding adoption of iot and mobile applications, how do you handle all this data behind rest web services along with their expanded requirements?

how to create an edi to json transformation for years, progress customers have been using xml converters to bidirectionally convert edi and flat-file data into xml documents and streams. as companies adopt and integrate with iot, mobile devices, and data behind rest web services, their requirements have expanded, now requiring bi-directional conversion of edi and flat-file data into json instead of xml.

how to convert edi and flat-file data into json with xquery and xml converters

how can one do this with xquery and the xml converters ? let me show you using the following sample x12 270 5010 (real-time eligibility, coverage, or benefit requests) hipaa document and stylus studio.

how can one do this with xquery and the xml converters?

using stylus studio’s xml mapper functionality and the datadirect xquery engine, you’ve mapped your edi data into the desired xml schema (see below).

you’ve mapped your edi data into the desired xml schema

when you press the green preview button, you generate your desired xml output.

your desired xml output

the datadirect xquery engine is seamlessly integrated with the xml converters and can force the output into another supported format just by using one of the datadirect xquery functions. to generate the output as json data, write the following command at the beginning of your existing xquery statement:

declare option ddtek:serialize “method=json”;

declare option ddtek:serialize “method=json”;

re-run your xquery statement by pressing the green preview button. you’ll see that the output has been converted to json based on the xml schema defined.

the output has been converted to json based on the xml schema defined

now, your web clients, mobile applications or iot devices are ready to support real-time eligibility, coverage or benefit requests with json.

real-time access to xml data

get instant sql connectivity from tabular and hierarchical-formatted xml documents with a single connector. progress datadirect enables you to connect to xml via odbc , xml converters , xquery or xml editor . these solutions enable the easy integration of xml data with your application, along with the ability to quickly retrieve data from either a local file system, a web server, or a web service. you can try it now here.

JSON EDI (software) Data (computing) XQuery

Published at DZone with permission of Gordon Crenshaw. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Modify JSON Data in Postgres and Hibernate 6
  • Exploring JSON Schema for Form Validation in Web Components
  • Datafaker Gen: Leveraging BigQuery Sink on Google Cloud Platform
  • Flexible Data Generation With Datafaker Gen

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!