lpdumas / gw2cartographers

A Guild Wars 2 map project
gw2cartographers.com
19 stars 8 forks source link

Exported JSON format #38

Closed lpdumas closed 12 years ago

lpdumas commented 12 years ago

I basically just do a JSON.stringifiy on an javascript object that is holding all the markers info. The structure of this object is the same as the Marker object of our config.js. To include the version and date creation, i suggest to do somehting like this:

exportedObject = {
  version : "1.0",
  creation_date: "2012-07-20",
  markers : {
    explore : {........},
    train : {......}
  }
}
jsilvestre commented 12 years ago

Sweet I can refactor the InputValidator and make GW2C-crowdsourcing ready :)

jsilvestre commented 12 years ago

Here is what GW2C-Backend is currently working with: https://gist.github.com/3125140.

"version" comes from the metadata "version" of the config.js that the user modify.

lpdumas commented 12 years ago

Perfect!