← Blog

JSON vs CSV for Payer Machine-Readable Files Under CMS-9882-P

Blog image

For a payer deciding between JSON and CSV for machine-readable files, JSON is generally the better fit for complex, connected pricing data. CSV works well for flat tables and analyst extracts, but it needs carefully defined keys and often multiple related files to preserve relationships. Payer Control recommends making the data model and validation rules the first decision, then producing the format required by the applicable CMS specification.

The format question matters because a payer file must carry meaning across several systems. A negotiated amount has little value if the consumer cannot identify the associated billing code, provider, network and plan. A neat spreadsheet can obscure those connections; a valid JSON document can still point to the wrong entity. Your controls must catch both failures.

What CMS-9882-P changes about the format discussion

CMS-9882-P concerns proposed changes to Transparency in Coverage requirements for payer machine-readable files. The CMS fact sheet for the proposed rule discusses greater standardization of machine-readable file formats and considers JSON and CSV in that discussion. A proposal should guide preparation, not be treated as a final technical instruction. Your publication process must continue to follow the requirements and technical guidance applicable to the particular file you produce.

That distinction is important for change planning. An organization already publishing a file in the format required by current guidance should not switch its public output merely because CSV is easier to open or JSON is easier to use in an application. The useful work now is to make the underlying data portable enough to produce an accurate output when requirements change. CMS also maintains technical clarification resources that payer teams can use when checking publication requirements.

Keep this subject separate from routine claims and enrollment exchange. Transparency in Coverage machine-readable files are public pricing disclosures. An 834 enrollment transaction or an 837 claim is an operational exchange governed by its own structure and controls. Those workflows can feed shared data governance, but converting an 837 into CSV does not create a payer transparency file.

JSON and CSV, defined for payer file teams

JSON stores named fields in objects and can group related records in arrays. A file can express a provider group, associated identifiers and a collection of rate information as related structures. CSV stores data in delimited rows, generally with one header defining the columns. It is straightforward when each row is an independent record with the same fields.

Neither format determines data quality. JSON's nesting makes relationships easier to express, but a producer can still create duplicate records, omit required values or use inconsistent identifiers. CSV is simple to inspect, but a single row often cannot represent every applicable provider, rate and contract relationship without repeating values or linking to other tables.

Where the formats differ in practice

Payer requirementJSONCSV
Related providers and ratesObjects, arrays and references can retain relationships.Requires repeated rows or separately keyed tables.
Business reviewUsually needs a viewer or transformed report.Convenient for filtering manageable tabular extracts.
Data typesDistinguishes strings, numbers, Booleans and null values.Requires a data dictionary and typed import rules.
ValidationCan be checked for syntax, structure and business rules.Can be checked by field and row; cross-file relationships need additional checks.
Large filesRequires careful parsing and resource planning.Can be processed row by row, but joins can be demanding.

The comparison is about representation, not automatic compliance. A good CSV design can use separate, well-keyed tables. A poor JSON design can repeat the same provider information throughout a large file. Assess the structure against the disclosure you actually need to produce.

Why relationships matter more than the extension

Imagine a contracted rate that applies to a billing code for a particular provider group within a network. Your source systems might store the rate, plan affiliation, provider identifiers and effective dates in different places. The output is useful only when those pieces reconnect accurately. If one provider identifier changes in one source but not another, either format can publish a plausible-looking error.

JSON can carry nested collections or references, which is useful when a concept has several related items. CSV typically handles the same situation by repeating the parent information on each row or by splitting data into separate tables. Both methods can work when identifiers are stable and the join rules are explicit. Problems appear when a conversion silently drops a many-to-many relationship or assumes every rate belongs to only one plan.

At Payer Control, we approach this as a source, relationship, output problem. First, identify the authoritative source for each field. Next, test how records relate across systems. Finally, confirm that the published representation still expresses those relationships. A clean file starts with dependable joins, not attractive formatting.

What can go wrong when you flatten JSON into CSV

A CSV export can help your analysts inspect a subset of pricing data. It can also hide important distinctions if someone assumes each output row corresponds to one complete contract record. Before flattening, decide what one row means and write that definition into the export specification.

  • Duplicated context: Repeating plan and provider details across rate rows can produce inconsistent versions of the same value.
  • Lost multiplicity: If one record has several relevant providers or arrangements, selecting only the first item changes the meaning of the data.
  • Unclear keys: A column called provider may be a name, an identifier or a group reference. Consumers need to know which one it is.
  • Null confusion: An empty field can mean unknown, not applicable or missing because a conversion failed. Those meanings should not collapse into one blank cell.
  • Spreadsheet changes: Automatic import can remove leading zeros from identifiers or reinterpret dates and long numeric strings.

If you distribute a CSV for internal review, include the mapping, key definitions and extraction date. Make it clear whether the file contains every relevant record or a filtered sample. A reviewer who sees a manageable table may otherwise assume it represents the entire public disclosure.

What can go wrong when you publish JSON

JSON handles structured relationships, but structure alone does not make a payer machine-readable file accurate. Syntax tests can confirm that braces, strings and arrays are valid. They cannot tell you whether a provider is attached to the right network or whether a rate is associated with the correct service.

  • Broken references: An identifier can point to a provider group that does not exist in the published file.
  • Inconsistent meanings: Two sources can use the same field name for different concepts, and a converter can carry that ambiguity into the output.
  • Unexpected omissions: A valid object may lack a required business value if the source extract was incomplete.
  • Resource constraints: Large files need tested generation, transfer and parsing processes. A small sample does not reveal how a full run will behave.
  • Partial publication: A file can be accessible while reflecting only part of the intended provider or rate population.

For a fuller treatment of controls that apply after format checks, see our guide to Transparency in Coverage file validation for payer data teams.

A practical workflow for payer format readiness

You do not need to commit your entire organization to a new file type to improve readiness. Work from source records through publication, and preserve evidence at each handoff. This sequence lets you respond to a future specification without discovering at the last minute that nobody owns a critical field.

1. Inventory each disclosure and its data sources

List each machine-readable file your organization produces, its applicable specification, its source applications and its publication location. Identify the teams responsible for rates, provider data, network affiliations, plan information and file operations. Record how updates reach the output and where someone manually intervenes. Keep operational EDI feeds on the inventory only when they supply data or controls relevant to the disclosure, rather than confusing those feeds with the public file itself.

2. Define what a record represents

Set out the entities and relationships before discussing JSON fields or CSV columns. Define how you identify a plan, a network, a provider or provider group, a service and a rate. For each link, state whether it can have one match or many. This makes it easier to spot a transformation that collapses multiple relationships into one row or loses a reference while building a nested object.

3. Create a source-to-output mapping

For every required output field, identify its source, transformation and owner. Document how effective dates are selected, how conflicting identifiers are resolved and which records are excluded. Treat an unresolved mapping as a processing exception, not an invitation to insert an unreviewed default. If the output requires a value the source does not carry consistently, fix that gap before publication.

4. Validate at several levels

Start with format checks: JSON syntax or CSV parsing, quoting and column consistency. Then check the applicable output structure and required fields. Next, test references across plans, providers, codes and rates. Finish with business rules, including duplicate identification, effective-date logic and unexpected changes in the population of records. An error report should identify the record and the rule it failed so an owner can act on it.

5. Reconcile the output to its sources

Compare the intended source population with the generated file at useful levels, such as plan, network and provider grouping. Investigate differences rather than relying on an overall file count. A count that looks stable can hide a missing group offset by duplicated records elsewhere. Keep a record of the source version, generation run, validation results and publication decision.

6. Test with real consumers

Have the people who will use the file load a realistic output. Can they identify the correct plan and associated rate? Can they trace a row or object back to its source? Does a CSV extract require an undocumented join? Can a JSON consumer process the full file without truncating it? Test the recovery path too: if publication fails, you should know who is alerted and which output is currently accessible.

Best practices that hold up in either format

  • Keep identifiers as identifiers. A leading zero or long numeric value should not change because a spreadsheet guessed its type.
  • Document the grain. State what one JSON object or CSV row represents and whether a record may connect to several entities.
  • Separate required output from convenience extracts. An internal flat file can be useful without replacing the public machine-readable file.
  • Check completeness as well as validity. A valid file may still be missing a plan, provider group or set of rates.
  • Track changes between runs. Review unexpected gains and losses by meaningful business category, not only total file size.
  • Give exceptions an owner. A dashboard is most useful when a person can see the failed rule, affected records and next action.
  • Control access to working data. Public output and internal source records have different audiences. Keep appropriate security and audit practices around the systems that generate the file.

Where Payer Control fits in the payer data workflow

A transparency publication process may depend on enrollment, eligibility and claims information maintained elsewhere in your organization. Those operational systems often exchange data in different formats. Our eligibility processing tools support multiple file formats, custom validation, monitoring and alerts. Our claims management tools provide monitoring, error detection, audit trails and integration with claims systems. These capabilities help teams standardize and inspect operational data before they use it in broader payer processes.

For example, imagine one trading partner sends enrollment updates in CSV while another sends an 834. If the same plan identifiers feed downstream reporting, inconsistencies in those updates can create confusion far beyond the intake step. Standardizing and validating the incoming records gives enrollment, claims and service teams a clearer view of what entered the system and what needs attention. It does not turn those incoming files into transparency disclosures, but it improves control over the data environment around them.

This is also why format conversion should be treated as an accountable workflow. If you want to explore the operational side of that distinction, our article on normalizing 834 and multi-format enrollment data explains how different inputs can be made usable without asking business teams to inspect raw files.

Frequently asked questions

Does CMS-9882-P require payers to publish CSV instead of JSON?

No. CMS-9882-P is a proposed rule that discusses format standardization. Do not interpret that discussion as a current instruction to replace a required public file with CSV. Check the applicable final requirements and technical specifications for each disclosure.

Is JSON always better than CSV for payer machine-readable files?

No. JSON is a stronger representation when the data contains nested or many-to-many relationships. CSV is effective for flat records and controlled analyst extracts. Compliance depends on the applicable file specification, while accuracy depends on mapping, validation and reconciliation in either format.

Can a payer generate CSV reports from a JSON transparency file?

Yes, for analysis, provided the extract defines its row meaning, keys, filters and treatment of repeated relationships. A derived CSV should not be assumed to replace the public file or preserve every relationship automatically.

Is a valid JSON file necessarily a correct machine-readable file?

No. Valid JSON only confirms that the text follows JSON syntax. You still need checks for the required structure, complete populations, valid references and correct business relationships.

What should IT directors prioritize before a final format change?

Identify source owners, map fields and relationships, test output against the applicable specification, reconcile populations and document how failures are resolved. Those controls remain useful whether a future requirement favors JSON, CSV or another defined output.

How do 834 and 837 files relate to payer transparency files?

834 enrollment and 837 claims are operational EDI transactions, not public Transparency in Coverage machine-readable files. They may share underlying plan, member or claims data with other payer systems, so consistent identifiers and clear processing histories can still matter to the wider data environment.

Build for accurate disclosure, then choose the representation

JSON is usually the more natural way to express connected payer pricing data. CSV remains a practical choice for flat analysis and operational review. Under CMS-9882-P, the immediate task is to understand the proposed direction while continuing to meet the publication rules that apply to your files. Define the source and relationship model, test the required output and reconcile what the public can actually retrieve.

If your team is working through inconsistent upstream formats or limited visibility into enrollment and claims data, talk with Payer Control about standardization, validation and monitoring across those workflows.

← All articles

Secure Your Data Now with PAYER CONTROL