Introduction

📥

Latest schema

Format 1.0.1. Download cwr-json-schema-v1.0.schema.json.

This file is the current published schema. The filename stays v1.0 for every 1.0.x release. Same download on CWR-JSON Schema.

CWR-JSON

CWR-JSON is a JSON encoding of the Common Works Registration (CWR) format — the global standard for registering musical works between publishers and collecting societies (PROs / MROs).

It preserves the full semantics of CWR EDI while replacing fixed-width ASCII records with a structured, human-readable JSON document. The result is a format that can be validated with JSON Schema, consumed directly by REST APIs, and read without a CWR parser.


Why CWR-JSON?

CWR EDI has served the industry since the 1990s. Its fixed-width record format is proven but difficult to work with:

  • No native validation tooling — parsers must be hand-built per record type
  • Fixed column offsets are brittle and error-prone
  • Opaque to anyone without a CWR spec in hand
  • Incompatible with modern REST/JSON API infrastructure

CWR-JSON solves all four problems while remaining a lossless representation of the source data — nothing is dropped, simplified, or inferred.


What CWR-JSON Covers (v1.0)

A CWR-JSON file contains:

SectionWhat it represents
headerFile-level metadata from the CWR HDR record (sender, dates, CWR version, software)
header.conventionsOptional. How the file represents writers and publisher shares. Supplied by the sender, not mapped from CWR EDI
header.tags, works[].messages.tags, recordings[].tags, releases[].tagsOptional { name, value[] } labels. Supplied by the sender, not mapped from CWR EDI
works[].titlesAll titles — original, alternate, non-Roman
works[].identifiersOne { iswc: string[] } entry, plus { type, value, source? } entries for the submitter work number (NWR/REV) and XRF cross-references
works[].partiesOwnership chain: writers → original publishers → sub-publishers; own shares without TIS scope, coll shares per TIS
works[].recordingsCommercial recordings (ISRC, album, label, release date)
works[].messagesRegistration type, revocation flags, ACK messages, schema metadata
works[].flagsAnomalous work indicators, AI usage flags

Territorial collection data from SWT / OWT / SPT / OPT records is represented inside parties[].territories[] as shareTypes with type: "coll".


Relationship to Other Standards

StandardRelationship
CWR 2.x (through 2.2 Rev3)Source EDI format — CWR-JSON is a JSON encoding of CWR registration data
CAF-JSONSibling format — Common Agreement Format in JSON (agreements/shares between publishers and societies)
ISWC (ISO 15707)Work identifier in works[].identifiers[] as { iswc: string[] }, written as T-NNN.NNN.NNN-C
TIS Numeric CodesTerritory identifier system used in parties[].territories[]
IPI Name/Base NumbersInterested Party identifier used in parties[].ipi

Document version

PropertyValue
Technical format version1.0.1
Technical format statusPublished (interchange format released in the Changelog)
SPF formal approval statusPending SPF confirmation
Document revision2
JSON Schema filecwr-json-schema-v1.0.schema.json (filename unchanged for format 1.0.1)
Lookup table filecwr_lookup_data_types_v1.0_r0.json
Prepared bySociety Publisher Forum (SPF)

Technical format status says whether the JSON shape is released for interchange. Format 1.0.1 is Published: implementers can generate and validate it today. SPF formal approval status is the governance approval of this specification text by the SPF. The two are tracked separately. When each version level changes: Version governance.


Reference implementation (informative)

Not part of the specification. This section describes the ALV CWR-JSON Playground, one implementation of this spec. Integrators build their own converter from the JSON Schema and these pages; where this section and the specification pages differ, the specification pages apply.

PropertyValue
ToolCWR-JSON Playground
Package@alvdigital/cwr-json-parser 1.5.3 (private)

The Playground converts in four stages:

CWR EDI text
    │
    ▼
tokenizer + recordParser     lines → { CWR field labels }
    │
    ▼
buildWorkModel               internal WorkModel (per work block)
    │
    ▼
projectCanonicalFromModel    ParsedCwrFile (CanonicalWork[])
    │
    ▼
schemaV1.convert             CWR-JSON v1.0 (adds messages.schema and messages.schemaDescription)

Shares and territories are built by upsertOwnTerritory / upsertCollectionTerritory; publisher chains and PWR links are resolved by PublisherRegistry.


Did this page help you?