diff etc/NEWS.10.md @ 33200:9f97974976cd

Allow integer inputs greater than 999999 to jsonencode (bug #65447) * NEWS.10.md: Announce that integers and flints are now output without ".0" suffix. * jsonencode.cc (encode_numeric): Remove test for floating point integers being below 999999 in order to write out as integer. Add new "else if" block to process integer inputs and write them as integers. * jsonencode.cc (encode): Better comments for if/else if tree decoding input type. * jsonencode_BIST.tst: New tests for integer inputs and for flints greater than 1e6.
author Rik <rik@octave.org>
date Tue, 12 Mar 2024 21:47:48 -0700
parents 297fd823a953
children 67480f3843c7
line wrap: on
line diff
--- a/etc/NEWS.10.md	Tue Mar 12 14:27:13 2024 -0700
+++ b/etc/NEWS.10.md	Tue Mar 12 21:47:48 2024 -0700
@@ -22,6 +22,9 @@
 The function no longer accepts complex inputs and will emit an error for these
 inputs.
 
+- `jsonencode` now outputs integers and floating point integers without ".0"
+  suffix.
+
 ### Graphical User Interface
 
 ### Graphics backend