From unknown Sun Jul 27 03:20:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42994 <42994@debbugs.gnu.org> To: bug#42994 <42994@debbugs.gnu.org> Subject: Status: 27.1; json-serialize unable to serialize JSON values Reply-To: bug#42994 <42994@debbugs.gnu.org> Date: Sun, 27 Jul 2025 10:20:49 +0000 retitle 42994 27.1; json-serialize unable to serialize JSON values reassign 42994 emacs submitter 42994 Jimmy Yuen Ho Wong severity 42994 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 23 08:25:17 2020 Received: (at submit) by debbugs.gnu.org; 23 Aug 2020 12:25:17 +0000 Received: from localhost ([127.0.0.1]:52234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9p3k-00069V-6S for submit@debbugs.gnu.org; Sun, 23 Aug 2020 08:25:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:34126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9p3h-00069J-GS for submit@debbugs.gnu.org; Sun, 23 Aug 2020 08:25:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9p3h-0005Lj-AH for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2020 08:25:13 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:36399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9p3e-0008KM-FC for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2020 08:25:12 -0400 Received: by mail-wm1-x334.google.com with SMTP id b66so3503645wmb.1 for ; Sun, 23 Aug 2020 05:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=wg3htBlc+Z2uSDZ9Vyqu51WaOoccPXqHznXQx3vuKKU=; b=hZlJuhSpylzRU8QbpZRww9y11MTaYgNrjMLWrVLGfl55akaUalJtIW63nAQZPKlbRT 8hZqPGTG279nyIWYUq8L5inRs/rUKmCgKhoZNz0fA7JqHuhdqEfrscrPlxzP/tNK4zFB ULbuMTEn4ba7l8wqfI3W4CsEWazWSdzrhUUeusO52jXIjOYpVvkmAgy/bKRxzSlTbZww JKyKnd//FjESAm5G3J39HxPXTdhp99IwBA3IpGdRuV4azA9163CwF0a0yFfjFmv6VbSV rVGPYWurW2ljDUUcZO5W3e0ILUVSNggsSq+IUuh4djPRNzgTARU06fl8uIz+wcFkDh52 SglA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=wg3htBlc+Z2uSDZ9Vyqu51WaOoccPXqHznXQx3vuKKU=; b=WbU02CMf1qIhLmDtxHGToSbva8dx8aDrBEy4tv86UnrD6rqXyUpP8CFqCC5eRpsYTf GdNgzk/dDNzse7SDYNUb4OkSrO1GVLgX0oDc+cfqkRtCiXRqy9F4Obi6RuROERL7islG 65Lzhyp1t0Sd9qHfLyTvTkss4r06cDbyigr78CSMAS0oL8oiRgNyu97+l70Ms4VoVA9S bC0iv85OydMLfIdGnW8JTemgXrR4yGi9lmvM+WX8quJQMH2wtSz7/8IiYn2Ui/Zywxl5 Na3TUY47VxpanRWnAsDe1+Y29PGlWTzS7P8EQ8UQdpA0mJRjQsxmJ0GBvhaRSTMD+GoS OvHA== X-Gm-Message-State: AOAM532Fa1EbC5fl+grCwIQJhqBq8w1ZyPGc4o8v0wtaBmeikGJl+Qp8 YSecp/ujb++NtDs4UG0VVrcVjXfQiVlnKQ== X-Google-Smtp-Source: ABdhPJxULpvYX1mKLbRN4WEt0qhvTxz6KpT+4xwVPdRevEwfuJ+KaBtckXFzjwKkaqy1lAa5QG6BfA== X-Received: by 2002:a1c:7fd3:: with SMTP id a202mr1307140wmd.67.1598185507776; Sun, 23 Aug 2020 05:25:07 -0700 (PDT) Received: from MobileCat.local ([188.214.11.130]) by smtp.gmail.com with ESMTPSA id j7sm3711699wmj.38.2020.08.23.05.25.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 23 Aug 2020 05:25:06 -0700 (PDT) From: Jimmy Yuen Ho Wong To: bug-gnu-emacs@gnu.org Subject: 27.1; json-serialize unable to serialize JSON values Date: Sun, 23 Aug 2020 13:24:58 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=wyuenho@gmail.com; helo=mail-wm1-x334.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) According to the [JSON spec](https://www.json.org/json-en.html), everything is a value and every value is a valid JSON, which means literal string, numbers, and true, false and null are also valid JSON values, but `json-serialize` is unable to serialize literals. This is wrong and behaviorialy different from the elisp-based `json-encode`. In GNU Emacs 27.1 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.6 (Build 19G2021)) of 2020-08-16 built on MobileCat.local Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.6 Recent messages: Entering debugger... Back to top level Entering debugger... Back to top level Saving file /Users/wyuenho/.emacs.d/elpa/lsp-mode-20200822.1926/lsp-eslint.el... Wrote /Users/wyuenho/.emacs.d/elpa/lsp-mode-20200822.1926/lsp-eslint.el Generating autoloads for /Users/wyuenho/.emacs.d/elpa/lsp-mode-20200822.1926/lsp-eslint.el...done Saving file /Users/wyuenho/.emacs.d/elpa/lsp-mode-20200822.1926/lsp-mode-autoloads.el... Wrote /Users/wyuenho/.emacs.d/elpa/lsp-mode-20200822.1926/lsp-mode-autoloads.el Wrote /Users/wyuenho/.emacs.d/elpa/lsp-mode-20200822.1926/lsp-eslint.el (byte-compiling failed) "true" Configured using: 'configure --prefix=/opt/local --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-gpm --with-gnutls --with-json --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-ns --with-gif --with-jpeg --with-lcms2 --with-png --with-tiff --with-xpm --without-harfbuzz --without-imagemagick --without-rsvg --without-xaw3d --with-rsvg 'CFLAGS=-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64' 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64'' Configured features: RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS XIM NS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: flycheck-pos-tip-mode: t company-fuzzy-mode: t company-statistics-mode: t company-quickhelp-mode: t company-quickhelp-local-mode: t rainbow-mode: t elisp-def-mode: t display-line-numbers-mode: t subword-mode: t form-feed-mode: t beginend-prog-mode: t purpose-mode: t imenu-list-minor-mode: t diff-hl-flydiff-mode: t projectile-rails-global-mode: t dap-tooltip-mode: t dap-ui-mode: t treemacs-filewatch-mode: t treemacs-follow-mode: t treemacs-git-mode: deferred treemacs-fringe-indicator-mode: t dap-mode: t yas-minor-mode: t crm-custom-mode: t override-global-mode: t winner-mode: t which-key-mode: t smooth-scrolling-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-mode: t show-paren-mode: t savehist-mode: t save-place-mode: t rxt-global-mode: t rxt-mode: t recentf-mode: t poetry-tracking-mode: t projectile-mode: t minibuffer-depth-indicate-mode: t ido-vertical-mode: t ido-ubiquitous-mode: t icomplete-vertical-mode: t global-whitespace-cleanup-mode: t whitespace-cleanup-mode: t global-tree-sitter-mode: t global-origami-mode: t origami-mode: t global-move-dup-mode: t move-dup-mode: t global-magit-file-mode: t which-function-mode: t magit-auto-revert-mode: t global-auto-revert-mode: t global-git-commit-mode: t shell-dirtrack-mode: t server-mode: t global-hl-line-mode: t global-flycheck-mode: t global-diff-hl-mode: t diff-hl-mode: t global-company-mode: t company-mode: t flx-ido-mode: t ido-everywhere: t icomplete-mode: t fido-mode: t editorconfig-mode: t desktop-save-mode: t delete-selection-mode: t auto-compile-on-save-mode: t auto-compile-mode: t async-bytecomp-package-mode: t amx-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Load-path shadows: /opt/local/share/emacs/site-lisp/cmake-mode hides /Users/wyuenho/.emacs.d/elpa/cmake-mode-20190710.1319/cmake-mode /Users/wyuenho/.emacs.d/elpa/xref-1.0.2/xref hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/progmodes/xref /Users/wyuenho/.emacs.d/elpa/project-0.5.1/project hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/progmodes/project /Users/wyuenho/.emacs.d/elpa/flymake-1.0.9/flymake hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/progmodes/flymake /Users/wyuenho/.emacs.d/elpa/eldoc-1.8.0/eldoc hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/emacs-lisp/eldoc Features: (shadow sort mail-extr emacsbug sendmail jka-compr jsonrpc helpful trace edebug info-look elisp-refs warnings cl-print iso-transl profiler two-column eieio-opt speedbar sb-image ezimage dframe visual-regexp-steroids visual-regexp misearch multi-isearch autoload undo-fu expand-region subword-mode-expansions text-mode-expansions cc-mode-expansions the-org-mode-expansions ruby-mode-expansions python-el-fgallina-expansions js-mode-expansions er-basic-expansions expand-region-core expand-region-custom dired-hide-dotfiles vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs diff-hl-dired dired-collapse dired-hacks-utils lsp-completion lsp-diagnostics lsp-modeline vc-git flycheck-pos-tip flycheck-pyre python-black py-isort python-docstring smartparens-python python tramp-sh docker-tramp tramp-cache tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat ls-lisp company-fuzzy company-statistics company-quickhelp pos-tip company-keywords company-etags etags fileloop generator company-gtags company-dabbrev-code company-dabbrev company-yasnippet company-capf company-emoji company-emoji-list company-files company-cmake company-clang company-semantic company-template company-bbdb rainbow-mode elisp-def ert debug backtrace display-line-numbers cap-words superword subword smartparens-config smartparens-javascript smartparens-ruby smartparens-org smartparens-markdown smartparens-text smartparens-c form-feed editorconfig-core editorconfig-core-handle editorconfig-fnmatch solarized-dark-theme solarized-theme solarized solarized-faces spaceline-config spaceline-segments spaceline powerline powerline-separators powerline-themes hideshow beginend window-purpose-x shut-up window-purpose window-purpose-fixes window-purpose-prefix-overload window-purpose-switch window-purpose-layout window-purpose-core window-purpose-configuration eieio-compat window-purpose-utils imenu-list windmove magit-lfs magit-todos hl-todo org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs forge-list forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy gsexp ghub let-alist gnutls forge-notify forge-revnote forge-pullreq forge-issue forge-topic bug-reference forge-post forge-repo forge forge-core forge-db closql emacsql-sqlite emacsql emacsql-compiler url-http url-auth url-gw diff-hl-flydiff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util dumb-jump popup rg rg-info-hack rg-menu rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header projectile-rails rake inflections inf-ruby ruby-mode smie autoinsert swift-mode swift-mode-imenu swift-mode-repl swift-mode-beginning-of-defun swift-mode-font-lock swift-mode-standard-types swift-mode-indent swift-mode-lexer yard-mode poly-markdown polymode poly-lock polymode-base polymode-weave polymode-export polymode-compat polymode-methods polymode-core polymode-classes eieio-custom eieio-base json-mode json-reformat json-snatcher js cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs reformatter flycheck-objc-clang cl-lib-highlight eterm-256color term disp-table ehelp xterm-color native-complete company-lsp dap-lldb dap-mouse dap-ui dap-ui-repl lsp-treemacs lsp-treemacs-themes treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-interface treemacs-extensions treemacs-persistence treemacs-mouse-interface treemacs-tag-follow-mode treemacs-filewatch-mode treemacs-tags treemacs-follow-mode treemacs-rendering treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator treemacs-scope pulse treemacs-faces treemacs-icons treemacs-themes treemacs-core-utils pfuture ace-window avy treemacs-logging treemacs-customization treemacs-macros gdb-mi gud bui bui-list bui-info bui-entry bui-core bui-history bui-button bui-utils lsp-lens dap-python dap-mode dap-launch dap-variables posframe dap-overlays lsp-sourcekit lsp-jedi lsp lsp-mode lsp-protocol xref project spinner network-stream nsm markdown-mode color noutline outline lv inline ht f dash-functional bindat tree-sitter-langs tree-sitter-langs-build tar-mode arc-mode archive-mode url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap pp tree-sitter-hl yasnippet-snippets yasnippet parse-time iso8601 crm-custom pager-default-keybindings pager browse-kill-ring delight use-package-bind-key use-package-delight osx-trash bind-key exec-path-from-shell quelpa-use-package use-package-core quelpa lisp-mnt help-fns radix-tree winner which-key smooth-scrolling smartparens paren savehist saveplace pcre2el rxt re-builder recentf tree-widget poetry projectile grep compile ibuf-ext ibuffer ibuffer-loaddefs thingatpt pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util mb-depth ido-vertical-mode ido-completing-read+ memoize cus-edit wid-edit minibuf-eldef icomplete-vertical help-at-pt whitespace-cleanup-mode whitespace tree-sitter tree-sitter-load tree-sitter-cli tree-sitter-core tree-sitter-dyn tree-sitter-dyn-get dired-aux origami origami-parsers move-dup magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode git-commit transient magit-git magit-section magit-utils crm log-edit message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor cl-extra shell pcomplete comint ring server hl-line flycheck ansi-color find-func help-mode dash diff-hl vc-dir ewoc vc vc-dispatcher diff-mode easy-mmode company pcase flx-ido flx ido icomplete editorconfig desktop frameset delsel auto-compile packed async-bytecomp advice async amx s cus-start cus-load finder-inf edmacro kmacro rx cl info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 1236869 771381) (symbols 48 59754 2) (strings 32 260694 133068) (string-bytes 1 7820521) (vectors 16 170769) (vector-slots 8 3445026 490372) (floats 8 7257 9604) (intervals 56 44394 28183) (buffers 1000 76)) From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 23 08:53:46 2020 Received: (at 42994) by debbugs.gnu.org; 23 Aug 2020 12:53:46 +0000 Received: from localhost ([127.0.0.1]:52261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9pVI-0000eJ-Qz for submit@debbugs.gnu.org; Sun, 23 Aug 2020 08:53:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9pVF-0000e0-8j for 42994@debbugs.gnu.org; Sun, 23 Aug 2020 08:53:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53304) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9pV9-0002hC-5O; Sun, 23 Aug 2020 08:53:35 -0400 Received: from [176.228.60.248] (port=2915 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k9pV8-0008EO-9l; Sun, 23 Aug 2020 08:53:34 -0400 Date: Sun, 23 Aug 2020 15:53:28 +0300 Message-Id: <837dtp8qwn.fsf@gnu.org> From: Eli Zaretskii To: Jimmy Yuen Ho Wong In-Reply-To: (message from Jimmy Yuen Ho Wong on Sun, 23 Aug 2020 13:24:58 +0100) Subject: Re: bug#42994: 27.1; json-serialize unable to serialize JSON values References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42994 Cc: 42994@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jimmy Yuen Ho Wong > Date: Sun, 23 Aug 2020 13:24:58 +0100 > > > According to the [JSON spec](https://www.json.org/json-en.html), > everything is a value and every value is a valid JSON, which means > literal string, numbers, and true, false and null are also valid JSON > values, but `json-serialize` is unable to serialize literals. This is > wrong and behaviorialy different from the elisp-based `json-encode`. Thank you for your report. To allow us to process this issue quickly and efficiently, please provide a couple of examples where json-serialize is unable to serialize literals. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 23 08:56:32 2020 Received: (at 42994) by debbugs.gnu.org; 23 Aug 2020 12:56:32 +0000 Received: from localhost ([127.0.0.1]:52270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9pXz-0000in-O0 for submit@debbugs.gnu.org; Sun, 23 Aug 2020 08:56:31 -0400 Received: from mail-il1-f171.google.com ([209.85.166.171]:45502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9pXy-0000ib-5i for 42994@debbugs.gnu.org; Sun, 23 Aug 2020 08:56:30 -0400 Received: by mail-il1-f171.google.com with SMTP id k4so5019413ilr.12 for <42994@debbugs.gnu.org>; Sun, 23 Aug 2020 05:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T9xvCfFmeRBx3/MUSLdKU4vmBgOthgcYXC3dhDD80zc=; b=TaGDEg08AW4IxyOtR04OcnHUyIaBSM9UzxfkurvXTW7nii8GZZ2uha1GtzbhTHfmAM Jrpt78/Cv5UFki5fUTCYaA5hAnxIMBw1fTxOM2e+7rxSeFzPeRNI+3PdhyHDXpH7UOAb C1kxi1/oRWXiL73eLHToqPco55R6hdBRZ0AYfdIt4kAhdDNab4VxLGPeTD27/fQuL5Q3 7P4O82bm4KOYkJSXKV+EKmsDuQRNljIBs+xZJzXqS+2Kgkdy7CN5kX6pfwKmilFMfl6I Hbw8tsbko7ZP+SrFcYkEIKLn36cH5tDNT+sMkPRc08lLcZoyMHSbxO4SxP79bb5ZmCLk OJDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T9xvCfFmeRBx3/MUSLdKU4vmBgOthgcYXC3dhDD80zc=; b=ikbq3+e0HXBllnct0cxeNrEuQKsR2Ja0eXpUJpFCQ+T4jLP2Lay2NUDFQ+HkiobwE7 yHuPqVkQkpK7NDxfMTVlSeOaay35igM/P+xHto1VGof0NrTvxSWsLqP0HsPBIjLQ/3Ll hRZfR6nCxBJO9/d8uYAw1p1YP5nOBejyJAt225b9MqKZtYJCZS0HEfCtU1tJYLoaPLsS QeMuymqyCcBJxBoiQdIrn6hNMK4E7hQSwevwwibjvmRiycmtB1pyRQCl6F+uUFO+a6x4 knUMQQHuadRUmjiAZjbLxMeELvW4dCjJieGFB17xnt7WbCOssRp8yTbqKLgbr2USJgso 1K1A== X-Gm-Message-State: AOAM532L1bycdsHyZg2JQdNf2y9hE1V1dy+s3mDe8Rcl8SrX6Yc/AB00 MjHlRYgvcZ2b/rGIt/1omPr+71eDlJynK9eAWJi2R6XkJFhQaw== X-Google-Smtp-Source: ABdhPJy7voFroKMHtnJyjfiuDgvJeLmUDoYmmVoTxjUx3zKWVtZlM8fpT3YkM8DsY1B8h16m6fE0R4gdNXvpmZXxfAM= X-Received: by 2002:a92:cc4d:: with SMTP id t13mr1079995ilq.107.1598187384359; Sun, 23 Aug 2020 05:56:24 -0700 (PDT) MIME-Version: 1.0 References: <837dtp8qwn.fsf@gnu.org> In-Reply-To: <837dtp8qwn.fsf@gnu.org> From: Jimmy Yuen Ho Wong Date: Sun, 23 Aug 2020 13:56:08 +0100 Message-ID: Subject: Re: bug#42994: 27.1; json-serialize unable to serialize JSON values To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42994 Cc: 42994@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) (json-serialize t) ;; *** Eval error *** Wrong type argument: json-value-p, t (json-serialize "foo") ;; *** Eval error *** Wrong type argument: json-value-p, "foo" (json-serialize 1) ;; *** Eval error *** Wrong type argument: json-value-p, 1 These are all valid JSONs. On Sun, Aug 23, 2020 at 1:53 PM Eli Zaretskii wrote: > > > From: Jimmy Yuen Ho Wong > > Date: Sun, 23 Aug 2020 13:24:58 +0100 > > > > > > According to the [JSON spec](https://www.json.org/json-en.html), > > everything is a value and every value is a valid JSON, which means > > literal string, numbers, and true, false and null are also valid JSON > > values, but `json-serialize` is unable to serialize literals. This is > > wrong and behaviorialy different from the elisp-based `json-encode`. > > Thank you for your report. To allow us to process this issue quickly > and efficiently, please provide a couple of examples where > json-serialize is unable to serialize literals. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 23 10:05:46 2020 Received: (at 42994) by debbugs.gnu.org; 23 Aug 2020 14:05:46 +0000 Received: from localhost ([127.0.0.1]:54871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9qd0-0003Pl-9X for submit@debbugs.gnu.org; Sun, 23 Aug 2020 10:05:46 -0400 Received: from mail-il1-f172.google.com ([209.85.166.172]:46751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9qcy-0003PX-99 for 42994@debbugs.gnu.org; Sun, 23 Aug 2020 10:05:44 -0400 Received: by mail-il1-f172.google.com with SMTP id c6so5088994ilo.13 for <42994@debbugs.gnu.org>; Sun, 23 Aug 2020 07:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0YMa7dRzUHtyQ+cDwPSNjr6MeQDCJCqsNolD5TDS/co=; b=M7jXGprPKszW8WJ/ArGMxLjApKYF2A6E5qohBedHhE5A3Jlsw0pGqhqqBvh6Fe881f iwz33A0B4vfJRiwJzvrt0007yEf5MFQgZmmr5OoqsVT0T90P2GcLAYDa9sG6F6LdV/BI uXTdk+G9NpeBg3dJqB7QzPQJiqcpQSbu5RNrYiRwAijJ0zfgsoCi8E4hzWA5+EcQpSgX uxtxol7FTQ3J4FhvKrp2uSk09C1nfqZ/YpRKE5IRo28CNGp4jxPfvuHhtp7ACWHILBkG kwjzdm9OwY6aD+y+91i//1S6KjvcLwUtaXhpBrmz7h/VWipo+LNfXqyI7rgNpIv/PBXL t/iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0YMa7dRzUHtyQ+cDwPSNjr6MeQDCJCqsNolD5TDS/co=; b=HwHkyJxNHYYGvYN4jzWIw7ks/wQt9O9DRuPWopg5bg+r4xI8K7qZIbv7GPXfOZH2+5 q/IRbhVAA7pQjS4LJNKizSOStHi9AOTcTe00clR3PQtCOOb8kIyVEKDR7NB2rMI0krex Ltfct6oGKjvNLOjN6TTdHlh5iKYkgisw0k/6/rDgnjBCLa/ejjIkfysAxLxxddy157ui /MjhJ7Zqb8tw1WlLFniNAkKs1IkwaiOUYwY5PmlnSoH0yheP8lb46iI0UfZiMeXPrgtS q/pr6fBw9d1FUYbQA165QKG1Zrs/pWYmLd6sN5cdjzPDtXnGv6+kE6uXLgB3ZGNFVTXX 7lBw== X-Gm-Message-State: AOAM532ue89JM9b5YSQw5QHUvgrnEoUN7Au1gl2+simlCzd8cWL+Y9n9 WN23qFd5O9DSJfMbjYm48XKQ6YhR/KiRcFmKyQY= X-Google-Smtp-Source: ABdhPJwD3FK5QUiVpJlfAneiqndj3PyH/goEgiHKPbI4rr1xmErf/Fq0X4NulKXu7uMr8PcgAF41OXsAdgZSB/GMcVI= X-Received: by 2002:a92:cc4d:: with SMTP id t13mr1245030ilq.107.1598191538536; Sun, 23 Aug 2020 07:05:38 -0700 (PDT) MIME-Version: 1.0 References: <837dtp8qwn.fsf@gnu.org> In-Reply-To: From: Jimmy Yuen Ho Wong Date: Sun, 23 Aug 2020 15:05:22 +0100 Message-ID: Subject: Re: bug#42994: 27.1; json-serialize unable to serialize JSON values To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42994 Cc: 42994@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) The answer seems to be setting JSON_ENCODE_ANY and JSON_DECODE_ANY https://jansson.readthedocs.io/en/latest/apiref.html#encoding https://jansson.readthedocs.io/en/latest/apiref.html#decoding On Sun, Aug 23, 2020 at 1:56 PM Jimmy Yuen Ho Wong wrote: > > (json-serialize t) ;; *** Eval error *** Wrong type argument: json-value-p, t > (json-serialize "foo") ;; *** Eval error *** Wrong type argument: > json-value-p, "foo" > (json-serialize 1) ;; *** Eval error *** Wrong type argument: json-value-p, 1 > > These are all valid JSONs. > > On Sun, Aug 23, 2020 at 1:53 PM Eli Zaretskii wrote: > > > > > From: Jimmy Yuen Ho Wong > > > Date: Sun, 23 Aug 2020 13:24:58 +0100 > > > > > > > > > According to the [JSON spec](https://www.json.org/json-en.html), > > > everything is a value and every value is a valid JSON, which means > > > literal string, numbers, and true, false and null are also valid JSON > > > values, but `json-serialize` is unable to serialize literals. This is > > > wrong and behaviorialy different from the elisp-based `json-encode`. > > > > Thank you for your report. To allow us to process this issue quickly > > and efficiently, please provide a couple of examples where > > json-serialize is unable to serialize literals. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 23 12:23:18 2020 Received: (at 42994) by debbugs.gnu.org; 23 Aug 2020 16:23:18 +0000 Received: from localhost ([127.0.0.1]:54982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9sm6-0006oD-64 for submit@debbugs.gnu.org; Sun, 23 Aug 2020 12:23:18 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:51534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9sm3-0006nu-Cj for 42994@debbugs.gnu.org; Sun, 23 Aug 2020 12:23:16 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07NGGDNn022550; Sun, 23 Aug 2020 16:23:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=wTBNvOX/NojIcitn/Yuj1KYFLizrMF2Oru0zCtHwxKQ=; b=zFYVDN2l4v9xLMsnjCJqKFHoLuH0e8hko7MluK2ybP5KnjR/4WVLRtcm9Ejh1FkNwhfh CYLCgJz09s5QUcBv8O4dgWV+P2ltSU9lBj52wuAnhgweorMAxzx0hfsTn7ZM01qZ6IpX H5IM1gwVv1iDrXt1ixT7jQ9bvLw8L7ZS/9fK3Qqo/D0VgABhBWblkouhTxlR4ummhxMV bubBlb9Jj+PWz40oLAZ32fMbyrdAzU8dl0afhr8mXv9lrrsuor2VgUqkUujWqcVgXlpp CrvOm2widTpOdFp7ATnR76Bx/2F48xKrWYF1wxKTzynccdORjoq0sFMQ4tbBz2RkGazt VA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 333cse1cba-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 23 Aug 2020 16:23:09 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07NGGSpk160874; Sun, 23 Aug 2020 16:21:09 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 333rtvk5m9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 23 Aug 2020 16:21:09 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 07NGL4ml023110; Sun, 23 Aug 2020 16:21:08 GMT MIME-Version: 1.0 Message-ID: Date: Sun, 23 Aug 2020 09:21:03 -0700 (PDT) From: Drew Adams To: Jimmy Yuen Ho Wong , 42994@debbugs.gnu.org Subject: RE: bug#42994: 27.1; json-serialize unable to serialize JSON values References: In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5044.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9722 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008230183 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9722 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 impostorscore=0 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=999 clxscore=1011 priorityscore=1501 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008230183 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42994 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > According to the [JSON spec] > (https://www.json.org/json-en.html), > everything is a value and every value is a valid JSON, which means > literal string, numbers, and true, false and null are also valid JSON > values, but `json-serialize` is unable to serialize literals. This is > wrong and behaviorialy different from the elisp-based `json-encode`. All JSON scalars are JSON values. Whether a JSON scalar is sufficient for a document (a JSON text) to be considered a JSON document (aka text) depends on whether RFC 8259 is supported. https://tools.ietf.org/html/rfc8259 When someone speaks of "a JSON", if they mean a JSON text (aka document), then whether that RFC is supported determines the status of a scalar value. Prior to that RFC, and for applications/systems that don't support it, only JSON objects and arrays need be considered JSON texts. Put differently, if only RFC 7159 or RFC 4627 is supported, and not also RFC 8259, then a document with just a scalar (which is a JSON _value_) isn't necessarily considered a JSON document. >From RFC 8259: A JSON text is a serialized value. Note that certain previous specifications of JSON constrained a JSON text to be an object or an array. Implementations that generate only objects or arrays where a JSON text is called for will be interoperable in the sense that all implementations will accept these as conforming JSON texts. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 23 12:47:03 2020 Received: (at 42994) by debbugs.gnu.org; 23 Aug 2020 16:47:03 +0000 Received: from localhost ([127.0.0.1]:55022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9t95-0007Ux-Cz for submit@debbugs.gnu.org; Sun, 23 Aug 2020 12:47:03 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:54839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9t94-0007UL-E6 for 42994@debbugs.gnu.org; Sun, 23 Aug 2020 12:47:02 -0400 Received: by mail-wm1-f49.google.com with SMTP id 83so6176387wme.4 for <42994@debbugs.gnu.org>; Sun, 23 Aug 2020 09:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=YrGnLl5VZWcJ5trz7dciE+RPY/7CAlCcsVQ1vvu95zA=; b=mQCHfotRaw4JmsC5N0HQfH13/5VAnI141OQkFogbi4/2KQjxFiyC47kuiMiNUvWvUx DTm52j4OMg+8WNiHHKyep+zw+onwg5y/OGE1mSiFJEouwaSyw8EjIJ6NOScWS353T0Xg 6z14lsWKXtHekEWktIaZf7+Hw5VQ2u0bo5XRBo7ln0hgQc2Xn9WQ/d/U25lFjpjFqmwj coI6+aZe+4XGMeWM+FJHRNv1TPfgWQ9OM7OYCqTT9W9GoYTlBMhP+f51oIFY18Cyvz/v DzTQ1J9DURZElIyX4Le5PRzayPGoa8UQ2RNdVqpP4fhTdjcwBZ8oBI0BnTEfL6dLMHHZ ySBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=YrGnLl5VZWcJ5trz7dciE+RPY/7CAlCcsVQ1vvu95zA=; b=csSl4nJdO9jYQXRhaHLM2zd5p9mxVp1Ch92PUXrB5SRtGy82C7SNo41XUV5A61r5dp ELyxKB/hsbLqX0e8q10Nn76jNFSEoBJMbx4geForPxHHGrk0yHmle5fxs6K/CvPGcrmT ShL2edeju7CoENCH5eHTV3nRRlXP7Wx/g1PpEujwkv2rc01PVhJeuMdYei1fxcPGvHAD RcfW59eCFilGU3AvRMaxhKPXBzVZa59pAIK2IfiHegBz0j/B9eAK/QoVzY8rWeWJKyiY YZxe8BwMF/pEcIhoKgYLumaafNSIxHto4NHUubHi0kz4SSCzzZNrmz5iejf51U4WVqwF kQwQ== X-Gm-Message-State: AOAM531XPLaA4wGYutWtqsr+sIDpS1ujkMK1giwHLirab0JSbYxUhKRc t3Re1CqdPCDXl/bl2oSxsdA9J8s2E6zodA== X-Google-Smtp-Source: ABdhPJz6SiKZ/64LUlg98l+XYiHPpxl5gLJbLNVshnMFLYpaYajhm5U6SPfeLqfKuYuLM9hExAIfCg== X-Received: by 2002:a1c:dc45:: with SMTP id t66mr2132802wmg.17.1598201216172; Sun, 23 Aug 2020 09:46:56 -0700 (PDT) Received: from MobileCat.local ([188.214.11.130]) by smtp.gmail.com with ESMTPSA id x133sm19369553wmg.39.2020.08.23.09.46.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 23 Aug 2020 09:46:55 -0700 (PDT) Subject: Re: bug#42994: 27.1; json-serialize unable to serialize JSON values To: Drew Adams , 42994@debbugs.gnu.org References: From: Jimmy Yuen Ho Wong Message-ID: <4309c1ca-f568-2fb4-cba0-d6e86453a94c@gmail.com> Date: Sun, 23 Aug 2020 17:46:54 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 42994 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) > All JSON scalars are JSON values. > > Whether a JSON scalar is sufficient for a document > (a JSON text) to be considered a JSON document > (aka text) depends on whether RFC 8259 is supported. > > https://tools.ietf.org/html/rfc8259 > > When someone speaks of "a JSON", if they mean a > JSON text (aka document), then whether that RFC is > supported determines the status of a scalar value. > > Prior to that RFC, and for applications/systems that > don't support it, only JSON objects and arrays need > be considered JSON texts. > > Put differently, if only RFC 7159 or RFC 4627 is > supported, and not also RFC 8259, then a document > with just a scalar (which is a JSON _value_) isn't > necessarily considered a JSON document. > > From RFC 8259: > > A JSON text is a serialized value. Note that > certain previous specifications of JSON > constrained a JSON text to be an object or an > array. Implementations that generate only > objects or arrays where a JSON text is called > for will be interoperable in the sense that all > implementations will accept these as conforming > JSON texts. RFC 7159, a 6 years old RFC has that exact same language in your quote. That quote means any RFC 4627 JSON text is forward compatible with any JSON parsers conforming to RFC 7159 or RFC 8259 and nothing else. I'm not sure why you are bringing this up. Even RFC 8259 is 3 years old and prior to that people had been sending booleans strings and numbers as JSON text for many years. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 23 12:58:27 2020 Received: (at 42994) by debbugs.gnu.org; 23 Aug 2020 16:58:27 +0000 Received: from localhost ([127.0.0.1]:55034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9tK6-0007n4-Ob for submit@debbugs.gnu.org; Sun, 23 Aug 2020 12:58:26 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:52636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9tK4-0007mn-1k for 42994@debbugs.gnu.org; Sun, 23 Aug 2020 12:58:25 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07NGsjcT126044; Sun, 23 Aug 2020 16:58:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=Tr31u5Tdq+nX/jxA+XiHJj8WfY2Qer75CRMIgUN9pb0=; b=YTtzv5w60m2KishX8LyMJCO5zvd5gr5jkLkzB55voKa0JkJj4PvzEC+W3BeNp7iGSEa+ Mc7K640Q5Coftt6U1tZCDHG6YYLSKSDuqXxHbTi6adN/6rQE0sXDrr2Xui5p1Mf3crc5 DL9zGqQuKA/RknDNa2UkXseG9iQPtdYi/zKpEt9RfT9YATige1kLcGkzVBfGNZ7Nvloo 50Zm4cJpdVsm0KJrmRprdbGlg1yXZrmdWpyZthZo0T75Zl3qBpntAvT1nWihUJFaU83P zH4TbU74N+dKn7bTtOil9wMC8bTUj3sAVpSneaKOxTUeftf/3mr3yOE53DQDjt5fu7HD IQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 333cshse45-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 23 Aug 2020 16:58:17 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07NGuSWc070710; Sun, 23 Aug 2020 16:58:16 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 333rtvkujt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 23 Aug 2020 16:58:16 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 07NGwFtb019304; Sun, 23 Aug 2020 16:58:16 GMT MIME-Version: 1.0 Message-ID: <9105c19a-e812-4c79-b1b9-cc77fabb2faa@default> Date: Sun, 23 Aug 2020 09:58:14 -0700 (PDT) From: Drew Adams To: Jimmy Yuen Ho Wong , 42994@debbugs.gnu.org Subject: RE: bug#42994: 27.1; json-serialize unable to serialize JSON values References: <4309c1ca-f568-2fb4-cba0-d6e86453a94c@gmail.com> In-Reply-To: <4309c1ca-f568-2fb4-cba0-d6e86453a94c@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5044.0 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9722 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxlogscore=875 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008230190 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9722 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 clxscore=1015 spamscore=0 priorityscore=1501 impostorscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=857 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008230190 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42994 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I'm not sure why you are bringing this up. Even RFC 8259 is 3 years old > and prior to that people had been sending booleans strings and numbers > as JSON text for many years. I'm actually agreeing with you. I brought it up to point out that at one time JSON scalar values were typically not considered to be JSON texts. This explains why some systems, frameworks, applications, etc. might not support scalar serialization. That's all. I do believe that Emacs should support RFC 8259 (it should always support the latest JSON specs). And it should support it by default. For interoperability with other systems etc. that do not support scalar texts, it can be useful to have a mode that, likewise, doesn't support/allow scalars as JSON texts - e.g., a "disable scalars" mode, which rejects a document that isn't an object or an array. But by default Emacs should support scalar texts. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 24 02:13:42 2020 Received: (at 42994) by debbugs.gnu.org; 24 Aug 2020 06:13:42 +0000 Received: from localhost ([127.0.0.1]:55831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kA5jh-0006cK-WC for submit@debbugs.gnu.org; Mon, 24 Aug 2020 02:13:42 -0400 Received: from mail-il1-f175.google.com ([209.85.166.175]:45890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kA5jg-0006c8-80 for 42994@debbugs.gnu.org; Mon, 24 Aug 2020 02:13:40 -0400 Received: by mail-il1-f175.google.com with SMTP id k4so6247593ilr.12 for <42994@debbugs.gnu.org>; Sun, 23 Aug 2020 23:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jGwoodtPUzSxE+yOtg0y92W11mNPExvMl0HzB3/g0FU=; b=RKC7V5h1wwxt+9rZkp/GE+lExmMw1Utz66USMkK9vqAHPDHbE1D9gVDkNOSNVSXlsH id56nGFpM+5bDKM2ZYz/IdzguWetxilBqaSnqcLUTQmSgsrFuF3pNDoMBu4hQmnVAVX2 cKrNk0sqwo5/LVhyameWOHA8iX7MxSbJYCX7DWstZ3iMq48O0qzY3UVpPaaaCnpcPt5i FR/HH3RPBDUA6r68+gK5WtssxA0sCPcsr+DiSYEMqIIDYxbfLDnU/dMzIKqy9ld87Vyi bfR9V4vT7gEKKjHIOtqTebhaObHz3CfFLhb5FA5LTeQJqtFLc0oVQGVVn1kOsTb+97Fq SJAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jGwoodtPUzSxE+yOtg0y92W11mNPExvMl0HzB3/g0FU=; b=YOsUbO9AFIQGyfbhljN1HBzlAWJp/jfZaP2pIJ1jCdUM57oDnOq7xdVRnZ5BFjzt/N 0YMnN9AZYCxOn5vQRiSTSf/HQ7pkmIEaWYwrz0aq1dV0OXhgPOcSDaN/IcbQzdjq884J cbZpTZ0zWSRScQGbtsfj7aqTI/bttzDb2x6er78h4k42wJRKmQXLom3ciEeQp7egzpXU Y7ib8ZK9I2OabfVwIwKoSjmEeIjAuI5k9hPQwEFSsOvQESz0GZPgFsCWOHLYX17rkdiH 0hNWh/70z9ghIp8Kby25Wtscz7d4iwu2e3D68ZWERV+E3lRnPPL6sYFuKvlCCepX5O05 /3aA== X-Gm-Message-State: AOAM531iHUeIiJtmywIumdhHBYqwbJ42n4wUQDxs50rIILBpaMhpVZGP 3i2GEjzXYqi2JgGAj+n14pEThW1yQq6Ql2cDCbE= X-Google-Smtp-Source: ABdhPJzf4o2a0SHmpZ8EfyPZ/6pFglUGI2rig+D4hUsIE5064vdb8vbrnSlCYiJM2/zh6KjmN82IcVfiaPkQTBdeS/o= X-Received: by 2002:a92:d3c5:: with SMTP id c5mr3422665ilh.159.1598249614460; Sun, 23 Aug 2020 23:13:34 -0700 (PDT) MIME-Version: 1.0 References: <4309c1ca-f568-2fb4-cba0-d6e86453a94c@gmail.com> <9105c19a-e812-4c79-b1b9-cc77fabb2faa@default> In-Reply-To: <9105c19a-e812-4c79-b1b9-cc77fabb2faa@default> From: Jimmy Yuen Ho Wong Date: Mon, 24 Aug 2020 07:13:18 +0100 Message-ID: Subject: Re: bug#42994: 27.1; json-serialize unable to serialize JSON values To: Drew Adams Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42994 Cc: 42994@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > For interoperability with other systems etc. that > do not support scalar texts, it can be useful to > have a mode that, likewise, doesn't support/allow > scalars as JSON texts - e.g., a "disable scalars" > mode, which rejects a document that isn't an > object or an array. > > But by default Emacs should support scalar texts. There's no need for any RFC modes. Decoding in Emacs with RFC 4627 is pointless as there are already :null-object and :false-object to enable translation of JSON values in elisp. Providing any kind of mode for encoding is also pointless, as the author sending the JSON should know what the other end expects. If the other side doesn't accept scalars, it'll reject there, and the client author can adjust accordingly. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 07:30:13 2021 Received: (at control) by debbugs.gnu.org; 13 Feb 2021 12:30:13 +0000 Received: from localhost ([127.0.0.1]:33673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAu3w-0005OX-NK for submit@debbugs.gnu.org; Sat, 13 Feb 2021 07:30:13 -0500 Received: from mail-wr1-f49.google.com ([209.85.221.49]:39299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAu3u-0005Ds-0w for control@debbugs.gnu.org; Sat, 13 Feb 2021 07:30:11 -0500 Received: by mail-wr1-f49.google.com with SMTP id v1so2811284wrd.6 for ; Sat, 13 Feb 2021 04:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=pA8Kge+s4ThPniV5utE8CdapIQu2ykZXXyHC1dhu/hU=; b=CNhRCQqjFprCUxTFwLRplSEx8H3rrZZl/bVKr8iXS76FOX/keo04AToG3lGZkUWZoG ezKHlUwHaljWMVWDsOOjsOfU49HJU9rTOh/MfQ9OaNs+cvJsclKYbxeaklaifg4mz8fx NCa9+qmIM8i2VMNzg34XG2lV5cuTYKCjmgr6BgTj6QDtBkzRtCWa9/jv40lEXhmrv2Xr hjeEBEYKrY5yP1KOQ6OYjNCcTgD+sPRy5/5XoW8YVg77f5brciEae8S3Ylc44DkK48Su v4k2kmTmp4GxxOeZK3gH6/dwqG5SRoxk0N4ka8yHBfFL2wl2pcfwYoxXS40C0HGCoKTX TceQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pA8Kge+s4ThPniV5utE8CdapIQu2ykZXXyHC1dhu/hU=; b=lYcqUqcCi5iwTcT10nq/9YBAMzEANAb1HXTHqtVdhLl206jzcrt40HL1zHNI45AakM NUXtFlmkmFK98bWfJjKYNzOsNfNDe4Aq1vf8urS1JNDACRZANHPBQ85TX/cZv17o36ei nCi6w7R1csMuxQqXMW36lHBF1+ACyJwE0PFXUjkoa0TQ12g57E1oUfjOd+6ryYnXIe6e nCyWu21OV6Y6ib928PtV/0++NS4BqrZTcO8lid6rl4z+bP8+VkNkOJ0X5pJyzB4i/tyO 5AkQTZKYviXsZiatpEObqKpKcg/uL20lKqYSJRvjjCIYI4Rhfaw04vIgLjGaZsvFkmzU iY2w== X-Gm-Message-State: AOAM533lW/Cyj0ZESnPanT99uvo477EiMy6ud1vFlgtb813n6PyRP5sU 7LdAvQWvH8wtvpSfKGgSNz/wWQ== X-Google-Smtp-Source: ABdhPJwblwwHmInHwhGytCFvuvNUWH4OUnQVYio0D7ZcPHutbjIB/2oJ2YxKdNbKVp2uR1MjqE0z0g== X-Received: by 2002:adf:f00c:: with SMTP id j12mr8458472wro.160.1613219404289; Sat, 13 Feb 2021 04:30:04 -0800 (PST) Received: from localhost ([2a02:8084:20e2:c380:6d2d:c2fa:f3fa:cabd]) by smtp.gmail.com with ESMTPSA id j7sm17434688wrp.72.2021.02.13.04.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 04:30:03 -0800 (PST) From: "Basil L. Contovounesios" To: Thomas Hisch Subject: Re: bug#46486: 28.0.50; json-parse-string missing support for key-less json strings References: <86v9aw9nt2.fsf@ims.co.at> Date: Sat, 13 Feb 2021 12:30:02 +0000 In-Reply-To: <86v9aw9nt2.fsf@ims.co.at> (Thomas Hisch's message of "Sat, 13 Feb 2021 13:04:09 +0100") Message-ID: <87k0rcywtx.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 46486@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 42994 46486 quit Thomas Hisch writes: > The [json-parse-string] function doesn't support json strings that > only contain a single value, which is neither a list nor a dict, e.g. > > "123" Thanks. This is a duplicate of https://bugs.gnu.org/42994. [...] > Note that strings that neither start with [ nor { are valid JSON objects > according to the JSON schema. Yes, since ECMA-404 from 2013, but unfortunately json.c currently conforms only with RFC4627 from 2006 in this respect. -- Basil From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 08:40:29 2021 Received: (at 42994-done) by debbugs.gnu.org; 13 Feb 2021 13:40:29 +0000 Received: from localhost ([127.0.0.1]:33746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAv9x-0002h1-Fo for submit@debbugs.gnu.org; Sat, 13 Feb 2021 08:40:29 -0500 Received: from mail-wm1-f53.google.com ([209.85.128.53]:40096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAv9t-0002gm-JP for 42994-done@debbugs.gnu.org; Sat, 13 Feb 2021 08:40:28 -0500 Received: by mail-wm1-f53.google.com with SMTP id o24so2611608wmh.5 for <42994-done@debbugs.gnu.org>; Sat, 13 Feb 2021 05:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=rwQqcrCRItzMuFyuugmSXv1Iu+oqe2N+e5pmU3xsBUo=; b=CcZvsUnrdDF+yA73pMLVhz/X62Kjt3rENKBgT2LLB/96ruQhQvReKKLn4hV90RjiZX iVsCTANCs8dR4/dKw8TdE+ItCyWOnQyomnz48mX2tmvnJy4upW4MzTMGovzp0S8Q822P lKai0YFCJyyiY7Yiq1lWVD8Tj9Kq2tWOnuJ9eDcfyQ3zGWM4HYBt8mP/2FEza0+4wlGp EAz+1w2Ud6S1WvKhjJNarLW/OVS8rpiWZej7oCBA4uHcI66dVjsCxcZfPa0zbHZ+MsYu YA7GywN/XDyYzLc9GldsSYptsZET4o4oEiF3BBwhbwa6x5QESPjbnn34e3lkATlBqoFr SuDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=rwQqcrCRItzMuFyuugmSXv1Iu+oqe2N+e5pmU3xsBUo=; b=U5U9nUF7jiBCoQ47PbOpUmWPhbYW3rhB69lauh38csQD4wydIURql2azOKaiaUk9Cj Agbe4/MhlGcFixCDhsRkWlfql54q0P0IbKSKbKvXZgHLV836xOftdl5ssZTjbOzaaNMm iwMOJ5tE7fg1AOifNGCn3Cqw5LyyCIoTtcQlZE1EVQNMC2chl82YooOn/XhpvJWmp1ih CrbZZ7Jn92xyUKagdkTRBK8mBAhlI5wCgY/OukOgPG7GG20jn9uOgFywwGIHHCPPyQlX qkOWDuoAPt1SeoQspItkdxnsEJIXNjv82uiVpeR1kkCIUULSgKjA97P0WLsqeqZDC7CG C5WA== X-Gm-Message-State: AOAM5319qhyTml+L+m/8m6HnSNInAQ2rtmN/Vgxt6SmEORry55oGSuZo 76GqzsRhzjCoiWtzQToaVylKqP4bUo6hQA== X-Google-Smtp-Source: ABdhPJya6dk0bMQzfg4h4SxTzGhoErpSrtbEj7Qw2S7yfQx128Ucqr4DobLkiwnQ5TlHLC3vgjD03Q== X-Received: by 2002:a1c:1bc4:: with SMTP id b187mr6614937wmb.18.1613223619350; Sat, 13 Feb 2021 05:40:19 -0800 (PST) Received: from philipps-mbp.fritz.box ([46.128.208.19]) by smtp.gmail.com with ESMTPSA id t74sm8821310wmt.45.2021.02.13.05.40.18 for <42994-done@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Feb 2021 05:40:18 -0800 (PST) From: Philipp Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: bug#42994: 27.1; json-serialize unable to serialize JSON values Message-Id: Date: Sat, 13 Feb 2021 14:40:18 +0100 To: 42994-done@debbugs.gnu.org X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 42994-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) I=E2=80=99ve now fixed this with commit 625de7e403.= From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 13:23:20 2021 Received: (at 42994) by debbugs.gnu.org; 13 Feb 2021 18:23:20 +0000 Received: from localhost ([127.0.0.1]:35015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAzZg-0001U2-08 for submit@debbugs.gnu.org; Sat, 13 Feb 2021 13:23:20 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:32837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAzZc-0001Tm-St for 42994@debbugs.gnu.org; Sat, 13 Feb 2021 13:23:18 -0500 Received: by mail-wr1-f44.google.com with SMTP id 7so3741261wrz.0 for <42994@debbugs.gnu.org>; Sat, 13 Feb 2021 10:23:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=rLWo6v67kjOGMmYs7IldVR0Td4KPHYp4ngrlPt6Nr70=; b=eN+d0yHwrnjwEP/DKI8KDEbR9Q4eDi8jxtmvg4gjMaqbfD7XFalxof579XZ3ltgLkK vNtBfF4VZvxxMhYNLf+hri+5jrFc7uv1covRf7J7rEuBBzjaMlZHtzVMl1fFXJ2ef7wJ /NhMpFwJ1N0yxde1FtNNu3UnlLFYUqbCvAihvvF6sZLNWlHTKrB+b6EFlHTirqy3aEU5 1dHp30D70rN/Fa+2Jiof0oHwi+vixZ+P4vTFC21p3rTXprzXCQxAU4OL5ZgazlLve/aF YlLqhTTE+tOp6z3/OjTQL9lK4oUSDJzoN8lERcyfEMpqCGJ+fsUz/7SJnBlpNkvwukth nbLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=rLWo6v67kjOGMmYs7IldVR0Td4KPHYp4ngrlPt6Nr70=; b=OVksg3yzEQPylr+hBP/nPZW94UhP2MLob7o22gEFag0VvmCDZjefbj09SuueMbet3+ MZ44+tJCZ2ubKrScRn+Sk3TJogUjxW/4vX3h4zmOgLsLY50sE2kL567Zx1tr+cJwaTAx UND+mY6XzHErFmFh2R1gNXounz1RxDfiMqAdIAKfokkd8bKZE6tAvu8Kiv/KnAeUZh3u MsXEFP7ldtrdBTL6uzTDlcGK0vCLJstuMlcRRVeF8wp5JG3Q6nb0/+75G0plmlur8YQJ WIzCS7nnoxJ7UXJNpa8gnVVp/PRxOw+7U2lD01O73rC5KizhA2peGg3lKHUL8OzSkeop /e/w== X-Gm-Message-State: AOAM530f+V2y3dVOuBThrV0uumngzvQiKN/iLgrJSr/Hd1/0369DyHmX 1hkTXwWFIgPflsy3CCyJUov9HA== X-Google-Smtp-Source: ABdhPJwzRjaem5Ti1eOHwLPE+FukwDQy5t30bhZKzt0bZROIjpgFLzdSW6tkWheS8y1v+xJIBRdEWQ== X-Received: by 2002:adf:a50c:: with SMTP id i12mr9916967wrb.299.1613240590945; Sat, 13 Feb 2021 10:23:10 -0800 (PST) Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id s23sm18832601wmc.29.2021.02.13.10.23.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 10:23:10 -0800 (PST) From: "Basil L. Contovounesios" To: p.stephani2@gmail.com Subject: Re: bug#42994: 27.1; json-serialize unable to serialize JSON values References: Date: Sat, 13 Feb 2021 18:23:09 +0000 In-Reply-To: (Philipp's message of "Sat, 13 Feb 2021 14:40:18 +0100") Message-ID: <87lfbrrfn6.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42994 Cc: 42994@debbugs.gnu.org, wyuenho@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Philipp writes: > I=E2=80=99ve now fixed this with commit 625de7e403. Thanks! Does this need calling out in etc/NEWS, or is it considered more of a bugfix? --=20 Basil From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 13:36:53 2021 Received: (at 42994) by debbugs.gnu.org; 13 Feb 2021 18:36:53 +0000 Received: from localhost ([127.0.0.1]:35052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAzmn-0001qX-BH for submit@debbugs.gnu.org; Sat, 13 Feb 2021 13:36:53 -0500 Received: from mail-wm1-f51.google.com ([209.85.128.51]:39837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAzml-0001qJ-81 for 42994@debbugs.gnu.org; Sat, 13 Feb 2021 13:36:51 -0500 Received: by mail-wm1-f51.google.com with SMTP id u14so3157211wmq.4 for <42994@debbugs.gnu.org>; Sat, 13 Feb 2021 10:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=C8TycksrdZPexUpFXI+4jMF5bMw/Fa0IWLGNAJWDErw=; b=DIuekTotrvvKHQbsod7joOu2YVWnUkcRJzEFhlKZv41cKasTnjTCaZZHcUAmlv8Pld 32RU84cXpeOr/QWlwoZULVHVe2YZg5wNgpFDIRKlEiV1phFpns7S8mseYjz6siSeu20B 0i2yM4hxPXS6o5mdeiRavAATpUhIFUm3qdZCSK3tEnk43TscQaIzQea8GGIgn460Zzft wc5qoKAhyxASk12gwQe4fCD3aw6I6Xm0E1fgjyj58LzUuHQHAxXyATRGEbgmG8MdpJXA RQl2i1yJVBMWRPvZ6XItNaYUVVS+d6wbuwLtSGlRHMD+igPwYdIKm6A2uzPJVfjK8YB3 6QHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=C8TycksrdZPexUpFXI+4jMF5bMw/Fa0IWLGNAJWDErw=; b=qBsiY7EFHpfKPdRzd7sQgFaUwVnkuJE/xEhoJsU/ot9/cihfaRD4A/y1r2XMBftJoj Otk+6kwgBoVMG6Xkol2fJciiPqUqBwskQJJ8XhMxhFpxifkTNbddaTH4TcNcK1Sm0VZ8 CO8cBHD5nosArxM0MnbZ+WN0ZuHLiToIEaTiHqcsMgr2jrivXBeCzntHDtF56s0mI0rM 8CWbRzGIOdL45RhjhSlPM2h5mQ9/zwgug2tKnnjF7FCsZEPmxtnU3m6g1a3FLDblw2TH r+FZ67SeVMRVao8MdyMmcOdnnovP505lGBuyCLvO+PLrVZcJ1wHICKGtPIMSXyRTpL4e xiJg== X-Gm-Message-State: AOAM531JtJa69c3brDWk1hg88qRS6g4Mzj/ZGxmKFgv6BTUWlVhM1B1U Ems1hGNai02+jJelk+o1DIM= X-Google-Smtp-Source: ABdhPJyqijaWMC4zPh/rbIDtCFzRNIxzQXq57rTGqJ2V503GnC/GQJVyG9bHc7HHh6f4+HfUzv6P7g== X-Received: by 2002:a05:600c:154c:: with SMTP id f12mr7527667wmg.40.1613241405264; Sat, 13 Feb 2021 10:36:45 -0800 (PST) Received: from philipps-mbp.fritz.box ([46.128.208.19]) by smtp.gmail.com with ESMTPSA id b4sm9331016wrp.74.2021.02.13.10.36.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Feb 2021 10:36:44 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: bug#42994: 27.1; json-serialize unable to serialize JSON values From: Philipp In-Reply-To: <87lfbrrfn6.fsf@tcd.ie> Date: Sat, 13 Feb 2021 19:36:43 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <87lfbrrfn6.fsf@tcd.ie> To: "Basil L. Contovounesios" X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 42994 Cc: 42994@debbugs.gnu.org, wyuenho@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) > Am 13.02.2021 um 19:23 schrieb Basil L. Contovounesios = : >=20 > Philipp writes: >=20 >> I=E2=80=99ve now fixed this with commit 625de7e403. >=20 > Thanks! Does this need calling out in etc/NEWS, or is it considered > more of a bugfix? Good point, I=E2=80=99ve now documented it in NEWS. It=E2=80=99s = definitely not a bugfix, since the previous behavior was intentional.= From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 18:30:42 2021 Received: (at 42994) by debbugs.gnu.org; 13 Feb 2021 23:30:42 +0000 Received: from localhost ([127.0.0.1]:35232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB4N7-0000Rk-UY for submit@debbugs.gnu.org; Sat, 13 Feb 2021 18:30:42 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:49212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB4N5-0000RW-9q for 42994@debbugs.gnu.org; Sat, 13 Feb 2021 18:30:41 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11DNUXCK021667; Sat, 13 Feb 2021 23:30:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=C80lfrwK89dSf/TomAXbyjaP7+0F/gqsHAJDHMF46dw=; b=EJcxElH5ApIYbLeLkYnbX33usy2g0UH2feTVYz+p4N+W1i5c25WEqqhaFhJES1uY6jgM tr9U0EBK1JgQ31RRkmXg4coo2JMLUCBgiP4trXqRngMUyOvmL+i/K6ryxYsApuHZVu55 43OT6wVwPNbvsrCRxV6UGlu5Nuol7uruBjAYfSXFtvEUGWyUIdZEiFoiawkre4Op2K7r Wi3hDTcaApEXe56P1VX8vkoBuNQQYmAMi4ulr5gZRTNu1CntoC+jJUAWjdory7T8slCe cIUgDDnBAnGDsNqq8dRGpthq8KpIpL8XSUWSv5QoeNhGfmnITeXwwTIHb/gZJOx0zIZ0 2g== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 36p49b19bt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 13 Feb 2021 23:30:33 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11DNU5TM120976; Sat, 13 Feb 2021 23:30:32 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2108.outbound.protection.outlook.com [104.47.55.108]) by aserp3030.oracle.com with ESMTP id 36prbjr425-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 13 Feb 2021 23:30:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WOYj754tQOjbz3TdWaSRPJmDbI5GU5x4wIYAEa85mLXM9Y2p7a1XmwOcZD1XnVQXhMTlh6S/k14SXS1zgOfkrik6+DU2U00gWZVJT/YTj6tyk64bchEsPfzZ1LO8IabKB/t9YwmOq9Br91OPwxKzcDCR11in7hpY96p+ZOapWdPnZ2hgWc3F0+ACDtdifsf1vyRWpjrJM/b7RgRpXg9X52NoKLRcs5/mPjPQ4rbrFaCMYyBXrEvcFtYkU3VQvQXGqht4MLQh/QxzuRf1DHptfoVQV0hNa/wHDCFMdY8IHHiQn8hEiYidFq8ju9Zx+LOC8X8xdhVNnp1gOoYorArRRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C80lfrwK89dSf/TomAXbyjaP7+0F/gqsHAJDHMF46dw=; b=OX6ck47k5JAlP6kOtntWsZlsZz4c49OP3R+kWBF4qS5uG4YkJUvbFVGAw4anst9sL+8tpStrleOl1Wg422fXOmFZHqKiCJhDFCH7ch82OzMfY4aGmaUM8mnj6YI3SryNDRDfTOYsg3h1jhMB/10xoU5tPKMP7hGDWYbjQKXFvVL6sCUFYs6A02144rQBgTtDf5+IdzwKORWdmwg+Z93p6OxlOyio4CNgHJdRYHMhMn/DpGph/yiCjX8CNC8TcG0AdRLTsNaz0jCq27g84f3ZP7tjxrx5B7i7jctpS6303Kq/MAJ8sVAemqaCLQnUpZ/HyzCDQcDRJJojyBr04/kyow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C80lfrwK89dSf/TomAXbyjaP7+0F/gqsHAJDHMF46dw=; b=JmDcBzQ7qte/Gy5Xka4sTs6R90nQeelCbblQBd9JkuIsTgokofSUI1fqO8S9Vn6pwrfStteZCvxN+2VkQk1+ZkX3Nf3QbqcDNEEskVpTLoU3Gx/hvzOhyY+0ZE9lk0PA9RF5zYJbC1FoqzTdsERyvVJ8JaEu5LlJQIXFjAIdsn4= Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2846.namprd10.prod.outlook.com (2603:10b6:805:d0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.29; Sat, 13 Feb 2021 23:30:30 +0000 Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3846.038; Sat, 13 Feb 2021 23:30:30 +0000 From: Drew Adams To: "Basil L. Contovounesios" , "p.stephani2@gmail.com" Subject: RE: [External] : bug#42994: 27.1; json-serialize unable to serialize JSON values Thread-Topic: [External] : bug#42994: 27.1; json-serialize unable to serialize JSON values Thread-Index: AQHXAjVtbwKpD7quH0KtziwPqTHevKpWu3ig Date: Sat, 13 Feb 2021 23:30:30 +0000 Message-ID: References: <87lfbrrfn6.fsf@tcd.ie> In-Reply-To: <87lfbrrfn6.fsf@tcd.ie> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: tcd.ie; dkim=none (message not signed) header.d=none;tcd.ie; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 841c857c-5321-422f-451d-08d8d0775a51 x-ms-traffictypediagnostic: SN6PR10MB2846: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gb/JmZs4X21RVq14xBAQmYIy1scRXysTVWJmmBYjpqoMAI0+yu1Ji4PiUVaru/0qSCSRXuFOejGbK7fyh8peiwgg7PTn+tARyVabYYsQ21+eWr5GIHo/8myzHINaTG8tz1cvRnZ5seu3u7+ys2d9DR/Pohx9EehZJPE84GKvZwLun6ZHkCgNgZcsfpkduXTiuSfAduBsX+6mHff05mxUF+28lf7TAB25o2eo0nNbLPuAG+Ioo2+thcABqQV5KGHUqjBpj4fBg3/pH/wFfbpvlnRf+FUv3v9N5xdNtb+pPLVGGdcGjK55+Yb7M3tINR3CJSQdZhHf+lZ4KnRJ/zc+0htzLUTZsNLa4HAujT6z7KbgGIQtd/3gEGCzHf5rG3jkLYX1JbHTNPfOMaEnmM9UUO4TH4yrapH20DbubDYsEYgITv30RZBLWpftY8ihIMEhMoWuZ2ttadHFEGpaUz3QMDhvOHUMIra1xk1ORUa5CJMyB7eaQ38Za5hZ3lmk1rsULOMSmcwbEIZEd0nbR1oaNw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(366004)(39860400002)(346002)(396003)(136003)(76116006)(66556008)(7696005)(66946007)(9686003)(66446008)(44832011)(64756008)(55016002)(66476007)(54906003)(4326008)(52536014)(478600001)(2906002)(296002)(4744005)(110136005)(86362001)(5660300002)(6506007)(71200400001)(26005)(33656002)(316002)(186003)(8676002)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?YjRrVzZyTzJDbGY1NllwWVJMeEF1R0lqc0l2clhuVzh1Y01QQSs2YzVGdVRq?= =?utf-8?B?Z0NIbjVCSFhXNUlmc1BsVFhNVU9JTEh5WDl1UU9Tay8vTVk5SytVOXpiK2xV?= =?utf-8?B?RFRsam5yUkNSVVNkN3hMclhBcy9sdzlmdmhmVnRuckZnVklOeTJldkE3VGow?= =?utf-8?B?VHRscXRpaGRvdXZQdlZXVE10Y2dUdWViajhuWm5VTjJnS2xma1FQNHpMVGVD?= =?utf-8?B?bFNIUzkvRFZKQk51WjlLM293WWQyQ0ZzWFRWRlovandUOXFpdGNXbW0yemo3?= =?utf-8?B?c0dVRXJnZkhDem1SWEdxdFVYNTJ5cHp5SEVSeDhGRmpycmtDeGNxRDZXc1p2?= =?utf-8?B?Ry8wMEJpQnB2SjdZNjF3WHRSZWdyK0hxakFzbTdxNzEvL3dDWDIzOXVlSTd0?= =?utf-8?B?RS9Lc3RLN3h0RUFlVTlYMzlJSEVNY2c3SS8rMGgwV1BybW5Kczkza05kY0h3?= =?utf-8?B?K3hwZWdKRTN4cTAzOWtuVUZ6cGtIWUwwY3FBS0Q1QTYzY1JYeWZKMDhRK1lS?= =?utf-8?B?NDVWNk1BcFErcDR3V1E3eTRLaGJPZjFKQzVOZ2V6NHZ2dVNObHVWalNGamFq?= =?utf-8?B?VUFKcHpGMHRaTUJQYlBBNkdzZFB0NmJVaDZ2VjRFOW5CcHppYlNqTEhoV2c3?= =?utf-8?B?SHR0bVdORDlNaVAwV3c1UlpTNmF4NFRoZnVrdGNET2pydFVUcFpKQThtNUli?= =?utf-8?B?ak5ya0VLL25TcFVLQTFES1M0QzE0cWVnR0hvVCt4WmdaMjNTcVkycWpuMHEv?= =?utf-8?B?a2dXK2o1TVBwazJCU01SMEdRSDZpanVVUVEzaG03azdNNlpLTnBwcVExOTZ2?= =?utf-8?B?QjFRWndjTWhPcWtuSGFXNk8vbEhNdng4QWh2TzlUei9Fa1NUY3dmNUhiK1NN?= =?utf-8?B?dEZhV0FPOW1rTkNDSXlLRkxUOE5idVVNak9UUWlxRWt4bFEraytIQVlBL242?= =?utf-8?B?ZXgzTlBVQ3VKWVorRXJoZ2lhYlZPTlRWUVF2OWpsUHBFMENLbDlVdlN2emlI?= =?utf-8?B?bk81cjNySWNBZEhCNERFNXM0eXFkL01tQW5KWGpwWjFaejg0SlhHd2hHOEFW?= =?utf-8?B?VS8yTmdBZGZJNXhsRGFpcnZUOHdha0c0WDZXdVVyclFxWEpYY0ZXc1c4RSti?= =?utf-8?B?VHh3aVRyVFVDbmtVUGovZW5Ebmk3a3IyS3BCT2FZRithbGlhRTlkenU5RFBa?= =?utf-8?B?ZzNvKy9nZldNdTZ4TG14UExwcmVPNHpBQ3pwTGd2c3NDdHg4bEpMR3cyL09r?= =?utf-8?B?NzB6aXlDVk42bWJSOGhqZjRrQUZMY3NOUzZtYkM4U25HdGpNRkUycGhGZnd5?= =?utf-8?B?SGRpZVA3M0g2UjZkYWZJVzBnL0M0SnJjRlphd1IzZEk4R3dhbnBJS3BSSUVw?= =?utf-8?B?UldDeS9tQVAxMmlJMVZUeDJpYndSN0pDeUQ3d1pLUUE4ZE1UVmpVazErS0tJ?= =?utf-8?B?cE16Y3lqbEdVVjBKcU1iSi9kYWxLT1U2MStVejZIdGZ1bFpvbU5PbDl6T1hL?= =?utf-8?B?YlFxK1BmQmtrVm0yM2psRlZIZkgyWGY0SldQaXZzUXR0Nk1udVVDQTZmUkZ1?= =?utf-8?B?dFRhajFwQWpWRGhsQ2pubEY5Nm5wbUdSV1VHOFdNeDdzMnlKTHVFai9oN3cy?= =?utf-8?B?aDJERGdDSnVtQVE3K2l5U01LZU1rQndBR09KeDJqNEpTdVBRWkRlb3ZkNVdW?= =?utf-8?B?NUE3WU1rZXUwSUlVRnZ2WlJINnFJR2lBVmoyMDVnUWVkWG9GcDI3akJGS0lu?= =?utf-8?Q?sGTEBLXx6ejLHioXSEhIQjyt/tSaj7LdMF52y8X?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 841c857c-5321-422f-451d-08d8d0775a51 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2021 23:30:30.7109 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +3Bnp7vQjx2z2VplIuaVlEuvZun1jKcW79y+PAz2VusTiImQaALo7nM8gHPtYmb84wkCsrAHrY97saLdOfkesg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2846 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9894 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 spamscore=0 mlxscore=0 phishscore=0 adultscore=0 bulkscore=0 mlxlogscore=928 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102130216 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9894 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 phishscore=0 clxscore=1011 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102130215 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42994 Cc: "42994@debbugs.gnu.org" <42994@debbugs.gnu.org>, "wyuenho@gmail.com" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) PiBUaGFua3MhICBEb2VzIHRoaXMgbmVlZCBjYWxsaW5nIG91dCBpbiBldGMvTkVXUywgb3IgaXMg aXQgY29uc2lkZXJlZA0KPiBtb3JlIG9mIGEgYnVnZml4Pw0KDQooQWdhaW4sIG5vdCByZWFsbHkg Zm9sbG93aW5nIHRoaXMgdGhyZWFkLikNCg0KSWYgRW1hY3Mgc3VwcG9ydCBvZiBKU09OIHBhcnNp bmcgb3Igc2VyaWFsaXppbmcNCmNoYW5nZXMgZnJvbSBjb25zaWRlcmluZyBvbmx5IG9iamVjdHMg YW5kIGFycmF5cw0KdG8gYmUgImpzb25zIiB0byBjb25zaWRlcmluZyBhbHNvIEpTT04gc2NhbGFy cw0KdG8gYmUgImpzb25zIiwgdGhlbiB0aGF0J3Mgbm90IGEgYnVnIGZpeDsgaXQncw0KYSBjaGFu Z2UgaW4gc3VwcG9ydCBvZiB0aGUgSlNPTiBsYW5ndWFnZS4gIElNTywNCnRoYXQgc2hvdWxkIGJl IGNhbGxlZCBvdXQgc29tZXdoZXJlIHN1Y2ggYXMgTkVXUy4NCg== From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 19:40:20 2021 Received: (at 42994) by debbugs.gnu.org; 14 Feb 2021 00:40:20 +0000 Received: from localhost ([127.0.0.1]:35245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB5SV-00022v-LB for submit@debbugs.gnu.org; Sat, 13 Feb 2021 19:40:20 -0500 Received: from mail-wm1-f54.google.com ([209.85.128.54]:40293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB5SQ-00022Y-0j for 42994@debbugs.gnu.org; Sat, 13 Feb 2021 19:40:18 -0500 Received: by mail-wm1-f54.google.com with SMTP id o24so4204302wmh.5 for <42994@debbugs.gnu.org>; Sat, 13 Feb 2021 16:40:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=E8Wce9z+5H53BFDiH2Ejuk4hRe0wNIjktZwlElr6j/M=; b=oF/EBJHkiJK1jyNrNGRM2tzbXgzcLkPELPZ5Y3CbQm/haKnviNpn9jBIxNjsrIGPo5 VlJ3qQq3WeF1Oqn36RR/bjjRl6JpTuFhtfy5yktERrmoj/xXp/yEwDXOv7WDGm5JiLJV dBWpygfE155FSXO/+mwRBkebtNrGOb6HgqcLaP1ONtq/p97mejYwL1D0wlpp7cKlL05o ZTqG+CVvSPI59u+Vflt9FJ93pjFNbxeiwHgmEvfQ2KRMoM/FpRvbWczfTMsCIgWIgMth hbxSIJlMhmW+x0RPNTSKBeJ25nqXlQLf4cjUMGxQHLMiVe5Gm9oK3+xUudPrSpA6M6Ev dFKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=E8Wce9z+5H53BFDiH2Ejuk4hRe0wNIjktZwlElr6j/M=; b=LFk93upyNUcw9JSVoiDlMNxxYCSyBoJQb4Cm9rWdExwQJUq983zKNPRv/DANvx4VMs KRgA7RKuEiDyVZAztBCUP9m6VeuQWFNjVXT5Ra2vxnDNoaQSVhQFLEVWvcw11v4OyckV MQ4JufqLJsW/PrirCRY2rJltr/fOM1MQkJzG+0Q4HA+pr1L9lQTAxvs8Vc3Lg70b2g0i OMnYPG4sLvNQokQ7GBVgC7Q9JgDmhHK/z4ou64YBthRaBYCHK3hFF+bj6X51xvN3GQ9Z JNHcgv/otNpoLCFlpaMDB38qhAfquMt9MCAVxYyGgPbxHgsPNPdk1vwSeSAIPgLoPx47 o4sg== X-Gm-Message-State: AOAM532rtR6R1Z/UsfQq07JZcJUFkInXK6xrldX7xrGB2F+QnSn2PGeB 9/V3/ihdyXeoGKcTuZ108imht1hAJzqaAA== X-Google-Smtp-Source: ABdhPJxvXWL9jHlep8lF9yWUk9FgrOuyCYi5ja/AUjKi3TMjtogdV3yvqu0jvrPN39+7JTh8PcA4Vw== X-Received: by 2002:a1c:49d7:: with SMTP id w206mr8136345wma.63.1613263207565; Sat, 13 Feb 2021 16:40:07 -0800 (PST) Received: from MobileCat.local ([188.214.11.130]) by smtp.gmail.com with ESMTPSA id v12sm2949091wrv.69.2021.02.13.16.40.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Feb 2021 16:40:06 -0800 (PST) Subject: Re: [External] : bug#42994: 27.1; json-serialize unable to serialize JSON values To: Drew Adams , "Basil L. Contovounesios" , "p.stephani2@gmail.com" References: <87lfbrrfn6.fsf@tcd.ie> From: Jimmy Yuen Ho Wong Message-ID: Date: Sun, 14 Feb 2021 00:40:05 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 42994 Cc: "42994@debbugs.gnu.org" <42994@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) If the original intention for `json-serialize` was to offer a functionally equivalent native version of `json-encode`, then this is a bug. There was no discussion about this mismatch whatsover, so my guess is this was an omission and thus a bug. On 13/02/2021 11:30 PM, Drew Adams wrote: >> Thanks! Does this need calling out in etc/NEWS, or is it considered >> more of a bugfix? > (Again, not really following this thread.) > > If Emacs support of JSON parsing or serializing > changes from considering only objects and arrays > to be "jsons" to considering also JSON scalars > to be "jsons", then that's not a bug fix; it's > a change in support of the JSON language. IMO, > that should be called out somewhere such as NEWS. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 14 05:01:14 2021 Received: (at 42994) by debbugs.gnu.org; 14 Feb 2021 10:01:14 +0000 Received: from localhost ([127.0.0.1]:35444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBEDK-0007Eg-K9 for submit@debbugs.gnu.org; Sun, 14 Feb 2021 05:01:14 -0500 Received: from mail-ot1-f51.google.com ([209.85.210.51]:35995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBEDH-0007ET-UJ for 42994@debbugs.gnu.org; Sun, 14 Feb 2021 05:01:12 -0500 Received: by mail-ot1-f51.google.com with SMTP id 100so3518799otg.3 for <42994@debbugs.gnu.org>; Sun, 14 Feb 2021 02:01:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E2JIWqefasD1JaAez9SqIeXV3Obn3i05gp6eSDwLLOk=; b=UkBGRsxxrqpL6fcGsHBEHogAXBN0lKnvto/tENhFGaZkFqMuqW6OgLXDC25XspsORy igDsyM0RBO9s17T/Rp5IOVC0LNSY0iDaRCWRS30xBi2qOWH0KEe/I7bLjTrjP44oIO2Q WrHrR30Izyr34cLtUmEjOop3+kYaUMiU2t4DJkNdGRAuvQ4gWvJFt1qUE0Vpn03an8np DUTCbonMtVxYjcrNvygAlGPPwWswX4YXJvcty3H+ffZm/waAqcq1v5j0lMruYsqyTWOr M2buoTt5vu5XcAKmvu8IG+KAMcQPNY+jBssKs+d64v6y8IqaVBLI1gm6+Koz1g7L+X3W rwHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E2JIWqefasD1JaAez9SqIeXV3Obn3i05gp6eSDwLLOk=; b=jm93mmFmgu6bcTDj1tXIZSAXKWJ0Tie4Vw9owR8ot0rsomJdP3tkj6ZP634whCYWd8 8uHW3uUJXkf28kgUfYAKKJjKyGTYAE8/7AZPeWRO8FoeNW7LwJKGVQXejx7KqxIVcwRJ Fff/qDss602NzVDFG22pGGd2ZAh1yh9zVfMog2/LI8lS+Gbf6Yy7/69Bk70oMaIhKl4y WsheiXCWs9YBS3FAD3y4QzRXHRZvs1DGFqAgHhOd7ucVqnQlfWmqe4VQ7RLDFa57WdjE nXlFBNW2CcQAEB2Q6jjrR9beT24WzrBbkckV7hBCvlOaxvADxp4y/Tn+HOqRgwhw94IU N2hg== X-Gm-Message-State: AOAM532xNq5tDFlZCGbrvcbvPYCaENfUWHotp0lqXYe4/HA5Hr4m+4jH cmNiBOgNi5MJKHIB1KIcKB99yOGH4BpFf70u4oo= X-Google-Smtp-Source: ABdhPJzq6nBBa1wILDx9FAgE92ReIswSic8unPIzZJC51G7F5SmDCaHlS5vJRutdkjS1Aa0nYE4YmjoQslfas+BdCHc= X-Received: by 2002:a05:6830:1051:: with SMTP id b17mr7848908otp.156.1613296866129; Sun, 14 Feb 2021 02:01:06 -0800 (PST) MIME-Version: 1.0 References: <87lfbrrfn6.fsf@tcd.ie> In-Reply-To: From: Philipp Stephani Date: Sun, 14 Feb 2021 11:00:55 +0100 Message-ID: Subject: Re: [External] : bug#42994: 27.1; json-serialize unable to serialize JSON values To: Jimmy Yuen Ho Wong Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 42994 Cc: "Basil L. Contovounesios" , "42994@debbugs.gnu.org" <42994@debbugs.gnu.org>, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Am So., 14. Feb. 2021 um 01:40 Uhr schrieb Jimmy Yuen Ho Wong : > > If the original intention for `json-serialize` was to offer a > functionally equivalent native version of `json-encode`, then this is a > bug. There was no discussion about this mismatch whatsover, so my guess > is this was an omission and thus a bug. Yes, replicating json-encode was not the intention. > > On 13/02/2021 11:30 PM, Drew Adams wrote: > >> Thanks! Does this need calling out in etc/NEWS, or is it considered > >> more of a bugfix? > > (Again, not really following this thread.) > > > > If Emacs support of JSON parsing or serializing > > changes from considering only objects and arrays > > to be "jsons" to considering also JSON scalars > > to be "jsons", then that's not a bug fix; it's > > a change in support of the JSON language. IMO, > > that should be called out somewhere such as NEWS. From unknown Sun Jul 27 03:20:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 14 Mar 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator