?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/json.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:24 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/json.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\"\210\300\303\304\"\207" [defalias json-encode-char0 encode-char json-decode-char0 decode-char] 3) #@168 Type to convert JSON objects to. Must be one of `alist', `plist', or `hash-table'. Consider let-binding this around your call to `json-read' instead of `setq'ing it. (defvar json-object-type 'alist (#$ . 672)) #@152 Type to convert JSON arrays to. Must be one of `vector' or `list'. Consider let-binding this around your call to `json-read' instead of `setq'ing it. (defvar json-array-type 'vector (#$ . 890)) #@533 Type to convert JSON keys to. Must be one of `string', `symbol', `keyword', or nil. If nil, `json-read' will guess the type based on the value of `json-object-type': If `json-object-type' is: nil will be interpreted as: `hash-table' `string' `alist' `symbol' `plist' `keyword' Note that values other than `string' might behave strangely for Sufficiently Weird keys. Consider let-binding this around your call to `json-read' instead of `setq'ing it. (defvar json-key-type nil (#$ . 1092)) #@241 Value to use when reading JSON `false'. If this has the same value as `json-null', you might not be able to tell the difference between `false' and `null'. Consider let-binding this around your call to `json-read' instead of `setq'ing it. (defvar json-false :json-false (#$ . 1670)) #@241 Value to use when reading JSON `null'. If this has the same value as `json-false', you might not be able to tell the difference between `false' and `null'. Consider let-binding this around your call to `json-read' instead of `setq'ing it. (defvar json-null nil (#$ . 1961)) #@30 Join STRINGS with SEPARATOR. (defalias 'json-join #[(strings separator) "\302\303 #\207" [strings separator mapconcat identity] 4 (#$ . 2242)]) #@43 Non-null if and only if LIST is an alist. (defalias 'json-alist-p #[(list) ":\203 @:\203 A\202 \301\211\202 ?\207" [list not-alist] 2 (#$ . 2393)]) #@42 Non-null if and only if LIST is a plist. (defalias 'json-plist-p #[(list) ":\203! \302@!\203 A:\203 \211AA)\202 \303\211\202 ?\207" [list x keywordp not-plist] 3 (#$ . 2556)]) #@39 Skip past the following N characters. (defalias 'json-advance #[(&optional n) "u\207" [n] 1 (#$ . 2749)]) (put 'json-advance 'byte-optimizer 'byte-compile-inline-expand) #@32 Return the character at point. (defalias 'json-peek #[nil "`f\211\206 \301)\207" [char :json-eof] 2 (#$ . 2926)]) (put 'json-peek 'byte-optimizer 'byte-compile-inline-expand) #@52 Advance past the character at point, returning it. (defalias 'json-pop #[nil "`f\211\206 \302)\211\302=\203 \303\304\305\"\202 \305\211u)\210)\207" [char n :json-eof signal end-of-file nil] 4 (#$ . 3109)]) (put 'json-pop 'byte-optimizer 'byte-compile-inline-expand) #@36 Skip past the whitespace at point. (defalias 'json-skip-whitespace #[nil "\300\301w\207" [" \n\f " nil] 2 (#$ . 3388)]) (byte-code "\300\301\302\303#\210\300\301\304\305#\210\300\306\302\307#\210\300\306\304\310#\210\300\311\302\312#\210\300\311\304\313#\210\300\314\302\315#\210\300\314\304\316#\210\300\317\302\320#\210\300\317\304\321#\210\300\322\302\323#\210\300\322\304\324#\210\300\325\302\326#\210\300\325\304\327#\210\300\330\302\331#\210\300\330\304\332#\207" [put json-error error-message "Unknown JSON error" error-conditions (json-error error) json-readtable-error "JSON readtable error" (json-readtable-error json-error error) json-unknown-keyword "Unrecognized keyword" (json-unknown-keyword json-error error) json-number-format "Invalid number format" (json-number-format json-error error) json-string-escape "Bad Unicode escape" (json-string-escape json-error error) json-string-format "Bad string format" (json-string-format json-error error) json-key-format "Bad JSON object key" (json-key-format json-error error) json-object-format "Bad JSON object" (json-object-format json-error error)] 4) #@24 List of JSON keywords. (defvar json-keywords '("true" "false" "null") (#$ . 4509)) #@64 Read a JSON keyword at point. KEYWORD is the keyword expected. (defalias 'json-read-keyword #[(keyword) " \235\204\f \304\305C\"\210\306\307\"\210\310\311!\204$ \304\305\212\312v\210\313\314!)C\"\210\315\230\203, \316\207\317\230\2034 \n\207\320\230\205; \207" [keyword json-keywords json-false json-null signal json-unknown-keyword mapc #[(char) "\302`f\211\206\n \303)\"\204 \304\305\212\306v\210\307\310!)C\"\210\311\211u)\207" [char n char-equal :json-eof signal json-unknown-keyword -1 thing-at-point word nil] 5] looking-at "\\(\\s-\\|[],}]\\|$\\)" -1 thing-at-point word "true" t "false" "null"] 4 (#$ . 4598)]) #@33 Encode KEYWORD as a JSON value. (defalias 'json-encode-keyword #[(keyword) "\303=\203 \304\207 =\203 \305\207\n=\205 \306\207" [keyword json-false json-null t "true" "false" "null"] 2 (#$ . 5234)]) #@192 Read the JSON number following point. The optional SIGN argument is for internal use. N.B.: Only numbers which can fit in Emacs Lisp's native number representation will be parsed correctly. (defalias 'json-read-number #[(&optional sign) "\304 \204\"