From f88105bd0444e66127b177ce9b77955dacc34a6f Mon Sep 17 00:00:00 2001 From: miktim Date: Mon, 4 Apr 2022 14:29:08 +0300 Subject: [PATCH] 1.2.1 --- LICENSE | 2 +- README | 5 +++-- dist/json-1.2.0.jar | Bin 7027 -> 0 bytes dist/json-1.2.1.jar | Bin 0 -> 7029 bytes src/org/miktim/JSON.java | 4 ++-- test/json/JSONTest.java | 3 ++- 6 files changed, 8 insertions(+), 6 deletions(-) delete mode 100644 dist/json-1.2.0.jar create mode 100644 dist/json-1.2.1.jar diff --git a/LICENSE b/LICENSE index 3fe04f6..8c2f40f 100755 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ MIT License - + Copyright (c) 2020-2022 miktim@mail.ru Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/README b/README index 5f0f34c..24e9c49 100755 --- a/README +++ b/README @@ -11,7 +11,8 @@ Release notes: - AVOID RECURSION!; - in addition, the generator converts Java Lists,Sets to JSON arrays, Java Maps to JSON objects. The null key is converted to a "null" member name. - Other Java objects are converted to JSON strings. + Other Java objects are converted to JSON strings; + - JSON JavaScript - like interface. Put, set, get notes: - put, set methods casts Java primitives to the corresponding objects. @@ -50,7 +51,7 @@ Overview: JSON normalize() throws Exception; // not required to generate JSON text - String stringify(String memberName, int... indices); // stringify value or array element + String toString(String memberName, int... indices); // stringify value or array element String toString(); // overridden, stringify JSON object Usage: see ./test/json/JSONTest.java diff --git a/dist/json-1.2.0.jar b/dist/json-1.2.0.jar deleted file mode 100644 index 66295987dc3e07f56d6db33e6f544b5f44a3c0c6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7027 zcmaKx1yEc~mxc+J;O>?{f;+(_NPsZF;1Jv`=-^I(;O_3h-Q5NT%i!(|?izx_=G#yH z-TMFCb8p{Ux9WZSboZ^UI$e*VECM1b9Na57xY{TeRk;5VC~$~y@{+1zEHXeTwx?k@ zIK{uDui$EaOGS!&PRoDG=YBW*-|Zi%yckeMN>W9Y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{;B6svLZT^+$lH`vhi=(*{Ew zsOhi#WpaVHs%1Gk5{cioQ9B}B@-|VkbbJX;%FfPG#ylrdg(07Y+KXQBh%a;P?#68N zhk4Ik)346z@CJ5dDi~0iTXn%f!KS_qhi0)-MC`aft30UGgWwS=i?E{vQcpxpkejsI zgnPPst~X~5UUM#zpprXizx7!=LKU^#&vq%jy$6E!6rbd$=8kj;5-^#ir{(PK=q0&K&fjWdq?R!Js^2pDNBq1 zJe=){^UM? zTmLip`NQx>eD`De{rt!JKRD3;m;4X9@@M>!9OcE|tmW^V|ITCnpe_G$F#YBDhrRr5 z{Ll2|Z|iqI)&Fh$Hx~1+LI3CT@4tE?NB?use+}V}p8h-yE6O4v{~<&EeL4S5w@32F G*M9+MXaV&A diff --git a/dist/json-1.2.1.jar b/dist/json-1.2.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..b1011536117d717faf01f55906cc6f5284e4d57b GIT binary patch literal 7029 zcmaJ`WmFv9mc`wjMmm86cXt8=2=4Cg1a}D}xCL+Ag1fsk65QQs+@0Vs`R0>1v)-FI zRkv!@T6^Ck_2-Sv8@~8^;r(9!K;=Z_r6j~vRGH)?>N`HoV`QRY{8D0Lp}~3;H4y z>1j4ym&=Gk?WB}v8r?5)s|txb0?MnLxx=OOXg>jea@F_`=R4SKv%L z^Z_(ba*_s(YUgBUF44ytmwGfS%{*h%uDi=p4BL>IecUsFDBH$kcE&2<+UvsnA-t6C zsAP$33|@7g@5T;t&=wL5RsJ58r{D$LCVsX)aUM0ML+h9Q<+)fW{hpZi$K5~q{d+0k ze&_eu$%6Us3j8|)^)G~-m5qy)-9JF2|E{WSvpi<>?;^9}LP3%KZ=ke_g8Vy0BPVAw zCnghHBWLF*byN@4KKvI8_jvC`-8i$iZ9vvH-{eG9IcOB=kaG~?4UxaYOnFH$4R)Jz zpW5SDTNPW*s+ZR*N2&K|s3dCRFJ`Ou5vtZ{=UW4{mzN$6dzLD*9+ZTpUPo4KxiIaJ zy)AY}Mm%5k(s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Nhx5O9*002K|{&`f@ZQ5PqgG9pjt#OgW(0oQ$CwlL~d8yg+<&h zW7{wFq@5OfEm$+tb~$o3>WdSu6aF9hXT4v4u{K^*e3_UgO%uBkmi^-nsT6|?; zVcD>CS8LVg@q#U9oUK4-*JN{;6DKtHU-e=IHgLunflk_B{Z_*8pLBz^l<%q5uGoT* z^sraZJ=p=5<{S%<4X|`uGP=`{!`y}kygvNiK3&OT?=2+u68erbDQT14D+AgC;jAB# zAWmD4?xxpO=6OSO@RHP8I-jai=P<;E4T|?MRRtu5%t)Zy?KV|des zin+i>Ptf%iWeSIqeBZfmuLImp0@{M+E<=u@(xZ;f@i-weGm)QFkeHQG{Uplo;O)9( zW`frzS4={9&?; zy@9&`c46Qab}DZBQveKlki8wgiC*D;09{ zmN>sIFRjj=N-E-e;bhF7%Bd_kZo>qFxV*_9#WWOg?T}ld>8BSCZpX8aL?W_X)Amrj za+@7i8AW9cJ3~Th#}+s6^m{%a7EV4MYZV^B_~ck8ZzKd*eEW!1bzn4B4d=EvZr_Rp z+%7uG_5oKYWW2VO%h@x-m}qrHKfRBmKMhq4EgGJ&HEv7jz06369TA~( z$}%BR|@6>@KVrna8_6=k4d@L>OMt>^bZ_uH_bPDK8A|0C!8sr>v+ z{mbM*#ir=Ref{p#=SZ&i_zX{ listNames() { return new ArrayList<>(this.keySet()); } -// Deprecated in 1.2.0 +// Deprecated 1.2.0 @Deprecated public List list() { return new ArrayList<>(this.keySet()); diff --git a/test/json/JSONTest.java b/test/json/JSONTest.java index ae05911..eff1f09 100755 --- a/test/json/JSONTest.java +++ b/test/json/JSONTest.java @@ -35,7 +35,7 @@ public static void main(String[] args) throws Exception { log(json.getNumber("One").floatValue()); // Number(Integer) // java.lang.ClassCastException // log(json.getString("Two")); - log(json.stringify("Two")); + log(json.toString("Two")); log(json.getString("3")); log(json.getJSON("Nested").getNumber("Array", 1, 1).intValue()); @@ -94,6 +94,7 @@ public static void main(String[] args) throws Exception { log(json.getNumber("Array", 1, 1).floatValue()); log(json = json.normalize()); + log(json.get("Array").getClass().getSimpleName()); // array is instance of Object[] log(json.getNumber("Array", 1, 1).floatValue());