1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-31 10:24:23 +03:00
Commit Graph

618 Commits

Author SHA1 Message Date
d2b3fd156e Updated README.md to explain how installation of json_fwd.hpp can be achieved as part of install step. 2018-01-19 11:42:53 +00:00
a8f711a2f1 using Google Benchmark #921 2018-01-18 21:57:21 +01:00
332f352033 Add an implementation of the Grisu2 algorithm for binary to decimal floating-point conversion
This is an attempt to fix #360. The algorithm produces
decimal representations which are guaranteed to roundtrip
and in ~99.8% actually produces the shortest possible
representation. So this is a nice compromise between using
a precision of digits10 and max_digits10.

Note 1:

The implementation only works for IEEE single/double precision
numbers. So the old implementation is kept for compatibility
with non-IEEE implementations and 'long double'.

Note 2:

If number_float_t is 'float', not all serialized numbers can
be recovered using strtod (strtof works, though). (There is
exactly one such number and the result is off by 1 ulp.)
This can be avoided by changing the implementation (the fix
is trivial), but then the resulting decimal numbers are not
exactly short.
2018-01-15 21:07:26 +01:00
411c16cbb2 📝 overworked documentation wrt. amalgamation #906 2018-01-14 13:08:28 +01:00
fea5f3792b 📝 it's 2018 2018-01-14 10:41:59 +01:00
ba2316372a fix link to the documentation of the emplace function 2018-01-03 11:06:32 +01:00
92484f0caf 🔖 set version to 3.0.1 2017-12-29 18:31:13 +01:00
3c76ff353d 📝 updated docs after PRs 2017-12-29 16:52:09 +01:00
1856f38c85 📝 removed paragraph on version 3.0.0 2017-12-17 11:22:35 +01:00
9eb5e2c271 🔖 set version to 3.0.0 2017-12-17 08:40:19 +01:00
c23f5dcea6 📝 fixed year 2017-12-15 23:49:37 +01:00
261caec2de 👥 added contributor image 2017-12-14 22:29:39 +01:00
fb8482db76 👌 fixed some issues from the last commit #875 2017-12-13 23:44:53 +01:00
293748a9a9 📝 overworked README
- Added recent contributors to thanks list.
- Linked PGP key for private mails.
- Updated compiler list.
2017-12-13 22:17:02 +01:00
569d275f65 💥 throwing an exception in case dump encounters a non-UTF-8 string #838
We had a lot of issues with failing roundtrips (i.e., parse errors from serializations) in case string were stored in the library that were not UTF-8 encoded. This PR adds an exception in this case.
2017-12-11 22:38:05 +01:00
772bb3cc20 📝 fixing documentation #867
The example in the documentation on how to "force" an array of arrays was wrong since the first release. Fixed the documentation and added checks for the README unit tests.
2017-12-10 12:32:20 +01:00
25d205c16d 📝 clarified difference between serialization and string value retrieval #853 2017-12-06 21:42:36 +01:00
7b8ddadd83 removed hunter badge 2017-11-16 21:01:27 +01:00
b5ddd99adf Updated hunter package links 2017-11-15 08:48:11 +01:00
4c4f60f438 📝 fixes #820 2017-11-06 20:35:05 +01:00
e423aea64a Typos README
Hey, thanks for this great library which I've used in many occasions now. I know it's not much, but I wanted to contribute at least a tiny bit back to you by this PR :-) Keep up the good work!
2017-10-31 16:31:14 +01:00
cea3f24ff9 📝 comment to address #561 2017-10-27 16:39:52 +02:00
7820b5eccb 📝 thanks for #795 2017-10-27 11:49:17 +02:00
b0c380b0f8 📝 cleanup after the last PRs 2017-10-22 09:12:35 +02:00
0c0851dbea 📝 comment how to integrate tsl::ordered_map (#546) 2017-10-05 20:36:18 +02:00
bab4a15748 📝 comment how to integrate fifo_map (#485) 2017-10-05 20:33:27 +02:00
60439aff05 📝 different cmake call 2017-10-05 19:43:59 +02:00
99ee4c1eaf 🔨 cleaned up Makefiles and docs #698 2017-10-04 19:27:35 +02:00
ec60ff3451 Add info for the vcpkg package. 2017-09-26 08:39:38 -07:00
cd53790993 👷 using Clang 5.0 2017-08-21 20:03:24 +02:00
76123fab76 📝 added note wrt. #667 2017-08-15 20:49:18 +02:00
bade3b3e6c 👷 cleanup 2017-08-10 21:17:40 +02:00
99ea12f304 📝 acknowledgements for #674, #678, #682, #685, and #686 2017-08-10 06:50:34 +02:00
86b3d06a93 remove duplicate word
s/to to/to/
2017-08-09 11:56:48 +02:00
db0b9732d4 DOC: add sort mentioning about support in hunter 2017-07-31 23:20:37 +02:00
850d856aae 🔨 cleanup after #663 2017-07-30 20:30:05 +02:00
504012a3db 📝 cleanup after #650
As <iostream> is not included in json.hpp any more, all code examples need to include <iostream> now.
2017-07-09 11:51:38 +02:00
1b2fabe802 👷 adding two recent Clang versions
Maybe the simple approach is working now - at least it is in https://github.com/taocpp/PEGTL/blob/master/.travis.yml
2017-07-09 11:10:18 +02:00
6f12749ef6 📝 added version string for Xcode 9 2017-07-08 12:55:05 +02:00
32065c8045 📝 fix for #639
Removed deprecated documentation of the comparison operator.
2017-07-07 21:16:33 +02:00
b9a8425cc8 📝 cleanup after #629 and #630 2017-06-21 18:55:25 +02:00
c2044205ef 📝 updated used compilers 2017-06-20 16:12:14 +02:00
b79a1a2678 📝 update after #626 2017-06-18 00:00:31 +02:00
e1ca484bc1 📝 added note about Conan #566 2017-06-17 11:20:09 +02:00
5fa5c17bc6 ✏️ cleanup after #595 2017-06-10 18:29:16 +02:00
92ef19696a ✏️ cleanup after #598 2017-06-06 20:48:11 +02:00
0c3ffe12cd reverting first/second experiment #350 2017-05-15 21:07:58 +02:00
87744fd594 Missed one. 2017-05-09 02:04:02 +00:00
0719287e44 Reducing chatter about Meson. 2017-05-09 02:01:55 +00:00
31fe2f5825 Adding support for Meson. 2017-05-08 13:35:00 +00:00