Advertisement
T99

config-idea

T99
Feb 10th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. // Example table:
  2.  
  3. +------+--------+--------+-----------+
  4. | id | name | type | value |
  5. +------+--------+--------+-----------+
  6. | aaaa | orgNm | string | Formative |
  7. +------+--------+--------+-----------+
  8. | aaaa | theme | cfg | bbbb |
  9. +------+--------+--------+-----------+
  10. | bbbb | fg | number | 76 |
  11. +------+--------+--------+-----------+
  12. | bbbb | bg | number | 255 |
  13. +------+--------+--------+-----------+
  14. | bbbb | hilite | number | 144 |
  15. +------+--------+--------+-----------+
  16.  
  17. // Would give the JSON:
  18.  
  19. "config": {
  20. "orgNm": "Formative",
  21. "theme": {
  22. "fg": 76,
  23. "bg": 255,
  24. "hilite": 144
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement