User:Ijabz/NewJSONFormatTransformations: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(New page: === Differences between Xml output and New Json Output All list elements removed and their attributes displayed as elements of the parent If attribute name could clash with attribute of ...)
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
=== Differences between Xml output and New Json Output
=== Differences between Xml output and New Json Output
All list elements removed and their attributes displayed as elements of the parent
*All list elements removed and their attributes displayed as elements of the parent
If attribute name could clash with attribute of child of parent rename. i.e both disc-list and track-list elements of medium can contain count element so renamed to disc-count and track-count
*If attribute name could clash with attribute of child of parent rename. i.e both disc-list and track-list elements of medium can contain count element so renamed to disc-count and track-count
All elements that were stored in the list now stored in json array and pluralised i.e tag ->tags, release ->releases
*All elements that were stored in the list now stored in json array and pluralised i.e tag ->tags, release ->releases
Some renaming is not that simple, i.e medium -> media,
*Some renaming is not that simple, i.e medium -> media,
Name-Credit within ArtistCredit as been anonymized
*Name-Credit within ArtistCredit has been anonymized
Data displayed in Xml for backwards comptability not shown in json , i.e release-group type attribute
*Data displayed in Xml for backwards compatability not shown in json , i.e release-group type attribute

Latest revision as of 11:04, 24 May 2015

=== Differences between Xml output and New Json Output

  • All list elements removed and their attributes displayed as elements of the parent
  • If attribute name could clash with attribute of child of parent rename. i.e both disc-list and track-list elements of medium can contain count element so renamed to disc-count and track-count
  • All elements that were stored in the list now stored in json array and pluralised i.e tag ->tags, release ->releases
  • Some renaming is not that simple, i.e medium -> media,
  • Name-Credit within ArtistCredit has been anonymized
  • Data displayed in Xml for backwards compatability not shown in json , i.e release-group type attribute