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
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Stop Poisoning Your Models: How I Built a CV Dataset Quality Toolkit I Can Reuse Forever
  • Advanced Auto Loader Patterns for Large-Scale JSON and Semi-Structured Data
  • From 13,000 to 20,000+ Endpoints: Architecting Forensics for the Remote Workforce
  • Architecting Scalable JSON Pipelines: The Power of a Single PySpark Schema

Trending

  • AI Agents Need an Identity Plane: Rethinking Enterprise Authorization for Autonomous Software
  • Why AI Agents Need a Shared Enterprise Ontology
  • Share Delta Lake Tables Between Databricks and Snowflake
  • How You Clear Your HTML5 Canvas Matters

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  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
·
Oct. 28, 16 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
20.4K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

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

  • Stop Poisoning Your Models: How I Built a CV Dataset Quality Toolkit I Can Reuse Forever
  • Advanced Auto Loader Patterns for Large-Scale JSON and Semi-Structured Data
  • From 13,000 to 20,000+ Endpoints: Architecting Forensics for the Remote Workforce
  • Architecting Scalable JSON Pipelines: The Power of a Single PySpark Schema

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

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 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook