IDE Issue 11

From MemberWiki

Jump to: navigation, search

Contents

IDE Issue 11: Should our metadata formats be expressible as JSON?

Introduction

We have decided to use XML for our metadata formats. The question is whether we need to design our XML format in a manner that allows straightforward transformation into JSON?

XML and JSON have some differences. For example, an XML element has tagname and has both attributes and child elements, whereas the closest counterpart in JSON, the 'object', does not have a tagname and only supports 'properties' (name-value pairs).

Nevertheless, if the XML language is designed with JSON conversion in mind, then the conversion can be more straightforward.

Existing industry practice

(Need to look into existing technologies that convert XML into JavaScript, such as E4X)

Jon's proposed resolution

(not written yet)

Personal tools