Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example table:
- +------+--------+--------+-----------+
- | id | name | type | value |
- +------+--------+--------+-----------+
- | aaaa | orgNm | string | Formative |
- +------+--------+--------+-----------+
- | aaaa | theme | cfg | bbbb |
- +------+--------+--------+-----------+
- | bbbb | fg | number | 76 |
- +------+--------+--------+-----------+
- | bbbb | bg | number | 255 |
- +------+--------+--------+-----------+
- | bbbb | hilite | number | 144 |
- +------+--------+--------+-----------+
- // Would give the JSON:
- "config": {
- "orgNm": "Formative",
- "theme": {
- "fg": 76,
- "bg": 255,
- "hilite": 144
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement