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

Rough Draft Data Structure #3

Open
smiller171 opened this issue May 20, 2016 · 0 comments
Open

Rough Draft Data Structure #3

smiller171 opened this issue May 20, 2016 · 0 comments

Comments

@smiller171
Copy link
Member

@smiller171 commented on Thu May 19 2016

Design a rough draft for our data structures


@smiller171 commented on Thu May 19 2016

"users": {
  "user1",
  "user2"
},
"u1todo": {
  "t1": {
    "priority": 1,
    "details": "stuff and junk"
  },
  "t2":{...}
},
"u1done": {
  "d1" {
    "priority": 1,
    "details": "stuff and junk"
  },
  "d2": {...}
}

@MillerNerd commented on Thu May 19 2016

I don't have any issues with that. It seems to address the problem from the link you sent.


@smiller171 commented on Thu May 19 2016

looks like this isn't exactly compliant json


@smiller171 commented on Thu May 19 2016

"users": [
  "user1",
  "user2"
],
"u1todo": {
  "t1": {
    "priority": 1,
    "details": "stuff and junk"
  },
  "t2":{...}
},
"u1done": {
  "d1": {
    "priority": 1,
    "details": "stuff and junk"
  },
  "d2": {...}
}

@smiller171 commented on Thu May 19 2016

Fixed it. I was defining a dict instead of a list


@MillerNerd commented on Thu May 19 2016

"users": 
[
  "user1",
  "user2"
],
"u1todo": 
{
  "t1": 
  {
    "priority": 1,
    "details": "stuff and junk"
  },
  "t2":{...}
},
"u1done": 
{
  "d1": 
  {
    "priority": 1,
    "details": "stuff and junk"
  },
  "d2": {...}
}

@smiller171 commented on Thu May 19 2016

probably want to turn users into a dict and add some metadata to each user


@smiller171 commented on Thu May 19 2016

What did you do to the formatting bro?


@MillerNerd commented on Thu May 19 2016

:3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant