Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save, Load Race Data in Human Readable JSON format #47

Open
nojronatron opened this issue Apr 24, 2024 · 0 comments
Open

Save, Load Race Data in Human Readable JSON format #47

nojronatron opened this issue Apr 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nojronatron
Copy link
Owner

Is your feature request related to a problem? Please describe.

Whenever I look at the output from Save Race Data button, I struggle to read and understand the data. Usually this isn't a problem because the data is stored for backup and for moving to a computer with Winlink Express installed and not looked at. But for instances where data verification is necessary (for whatever reason), reading through the current formatting is tedious (at best), and definitely time consuming.

I think this can be improved.

Describe the solution you'd like

When saving race data, the formatting should include newlines, and proper spacing and indentation for readability. This includes the bib records themselves: They should be properly comma-separated rather than tabs, and if possible, displayed as collections.
When loading race data, it should be able to read-in this neatly formatted data so as not to break

Describe alternatives you've considered

  • Not changing anything: The problem of difficulty reviewing data remains.
  • Writing out data to a single line: Will line-wrap too easily causing added difficulty reading the data.
  • Simple JSON: Be default, a JavaScript JSON parser does not make human-readable JSON, rather machine-readable usually for REST calls or efficient data processing.
  • JSON with tab-delimited bib records: The bib records are still difficult to read.

Additional context

An ideal output would look something like:

{
  "thisVersion": "2.0.0",
  "EventTitle": "Bigfoot FF Test",
  "MessageNumber": "1",
  "address": "N0CALL",
  "Location": "WM_Wright Meadow (Rd.9327)",
  "msgsubject": "Bigfoot FF Test Wright Meadow (Rd.9327) Message #1",
  "numlines": "4",
  "TheData": [
    "106,DROP, 1510, 24, WM", 
    "106, IN, 1510, 24, WM", 
    "105, OUT, 1510, 24, WM", 
    "105, IN, 1510, 24, WM",
    ],
  "Comment": "Testing FF.",
  "previousRecord": {
    "runner": "106",
    "action": "DROP",
    "time": "15:10",
    "dayOfMonth": "24",
    "location": "WM",
    "messageNumber": "1"
  }
}
@nojronatron nojronatron added the enhancement New feature or request label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant