util/json.lsp [src]
Functions for creating JSON lists
See the following for usage:
- doc--json-backend-docs
- doc--json-file-docs
- doc--json-func-docs
- doc--json-frontend-docs
- doc--json-command-docs
(json-array items)
Returns a JSON array made up of ITEMS
VARS:
(ITEMS LIST (VL-EVERY 'STRINGP ITEMS))
(json-array-prop key value)
Return KEY and VALUE as a JSON array property
VARS:
(KEY STR)
(VALUE LIST (VL-EVERY 'STRINGP VALUE))
(json-block ename)
Returns the JSON representation of a stair or landing block
(json-dump-file)
Writes a JSON dump file for a drawing
(json-object props)
Combine the JSON properties in PROPS into an object and return it
VARS:
(PROPS LIST (VL-EVERY 'STRINGP PROPS))
(json-prop key value)
Return KEY and VALUE as a JSON property
VARS:
(KEY STR)
(VALUE STR)
(json-string-prop key value)
Return KEY and VALUE as a JSON string property
VARS:
(KEY STR)
(VALUE STR)