-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi Chad and others,
I hope this is not too late. I like the proposal of having a JSON representation for station data however I would rather see this evolve into a JSON representation of the information contained in StationXML files and not only the text output from the FDSN web services. This means that the design goal of the StationJSON format should be that it can store the same information as StationXML files and one can convert from one to the other without loosing any information.
The JSON files at the network, station, and channel level would not change a lot I believe, but it would require additional definitions at the response level which should not be too much work.
I would be willing to look into actually doing that if there is interest in this. Potentially its even possible to auto-convert the XSD schema to a JSON schema.
Potential gains of a fully equivalent JSON representation of StationXML:
- IMHO easier to edit then XML files.
- Easier to parse and work with in almost all programming languages.
- They could just be dumped into "JSON enabled" databases (PostgreSQL > 9.4, MongoDB, many NoSQL databases, ...). Some of these are pretty neat and can query on nested JSON files.
- The "minimum" content characteristic desired for this format would be defined by the StationXML standard which I think is pretty sensible.
- It could evolve together with the StationXML definition and thus does not require a full separate definition.
FDSN standards tend to stick around for a long time so I believe the effort of doing this are well worth it.
Cheers!
Lion