-
Notifications
You must be signed in to change notification settings - Fork 107
Shorthand Boxes
Chris Griffith edited this page Mar 28, 2020
·
1 revision
Shorthand Box, aka SBox for short(hand), has the properties json
, yaml
and
dict
for faster access than the regular to_dict()
.
from box import SBox
sb = SBox(test=True)
sb.json
# '{"test": true}'
Note that in this case, json
has no default indent, unlike to_json
.
These documents are for Box 5.0+