/* eslint-disable */
define(function (require, exports, module) {
  var data = require('../core/data');

  data.registerProtocol(
    'json',
    (module.exports = {
      fileDescription: 'KityMinder 格式',
      fileExtension: '.km',
      dataType: 'text',
      mineType: 'application/json',

      encode: function (json) {
        return JSON.stringify(json);
      },

      decode: function (local) {
        return JSON.parse(local);
      },
    })
  );
});
