Milo Yip
4fdcb10c3e
Fix #587
2016-03-26 22:47:07 +08:00
Milo Yip
ec32200507
Merge pull request #584 from ludocode/trailing-commas
...
Added optional support for trailing commas
2016-03-21 09:33:59 +08:00
Nicholas Fraser
68217548f3
Added trailing comma support to iterative parser
...
This also fixes cases where the iterative parser should have produced
kParseErrorValueInvalid rather than kParseErrorUnspecifiedSyntaxError
when expecting a value (after a colon in an object, after a comma in an
array, and at the start of an array.)
2016-03-20 12:52:48 -04:00
Nicholas Fraser
7c0e9d941d
Added additional tests for trailing commas
2016-03-20 11:39:00 -04:00
Nicholas Fraser
3e21bb429d
Added optional support for trailing commas
...
This adds kParseTrailingCommasFlag to allow a trailing comma at the
end of maps and arrays. This is part of issue #36 , adding optional
support for relaxed JSON syntax.
2016-03-20 01:10:33 -04:00
Milo Yip
ca07fe2fef
Merge pull request #582 from ktrushin/explicit_type_conversion
...
do potentially precision-losing conversions explicitly
2016-03-14 01:25:58 +08:00
Konstantin Trushin
305882489c
do potentially precision-losing conversions explicitly
2016-03-13 14:07:39 +03:00
Milo Yip
d454d21409
Merge pull request #577 from comand/prettywriter-options
...
Add PrettyWriter format option for writing array in single line.
2016-03-09 09:31:36 +08:00
Cory Omand
7a79e91ecd
PrettyWriter formatting options.
...
This change adds PrettyWriter::SetFormatOptions with a corresponding
bitfield enum PrettyFormatOptions. This allows options affecting the
format of the PrettyWriter to be set. The first option to be provided
is kFormatSingleLineArray, which instructs the PrettyWriter to write
arrays on a single line, rather than breaking them up onto a line
per element.
2016-03-08 15:33:04 -08:00
Milo Yip
1623ef2a96
Update simplewriter example with Writer::Key()
2016-03-08 14:35:10 +08:00
Milo Yip
a045314f02
Merge pull request #576 from ChrisLundquist/patch-1
...
[simplewriter.cpp] show generated output
2016-03-08 14:29:34 +08:00
Milo Yip
7886965e34
Fix a bug in dtoa
...
This previously affects Writer:: SetMaxDecimalPlaces()
2016-03-08 10:03:31 +08:00
Chris Lundquist
d175915c55
[simplewriter.cpp] show generated output
...
This makes it painfully obvious that writer expects subsequent key/value pairs.
2016-03-05 18:14:20 -08:00
Milo Yip
824120b8d8
Merge pull request #575 from corporateshark/master
...
Removed commented code and added an explanatory comment instead
2016-03-05 23:23:20 +08:00
Sergey Kosarevsky
6e70e3521a
Removed commented code and added an explanatory comment instead
2016-03-05 13:47:32 +01:00
Milo Yip
01b2d463f7
Fix #573
2016-03-05 10:34:00 +08:00
Milo Yip
91fabf0461
Merge pull request #574 from miloyip/travis
...
Fix clang example compilation
2016-03-05 10:22:41 +08:00
Milo Yip
facb432f91
Try another fix
2016-03-04 16:37:04 +08:00
Milo Yip
d60abc914c
Fix example clang link flags
2016-03-04 14:09:56 +08:00
Milo Yip
031a0b6660
Merge branch 'master' into travis
2016-03-04 14:04:49 +08:00
Milo Yip
a62777487d
Normalize line endings but not JSON files
2016-03-04 11:52:18 +08:00
Milo Yip
7fb84d304b
Revert "Normalize all the line endings"
...
This reverts commit 6047e3ce128954ec594e9a893ef2125c9f9b61c7.
2016-03-04 11:51:30 +08:00
Milo Yip
6047e3ce12
Normalize all the line endings
2016-03-04 09:46:11 +08:00
Milo Yip
d9cf99baf6
Normalize all line endings
2016-03-04 09:44:01 +08:00
Milo Yip
6d0f0b2a84
Merge pull request #564 from corporateshark/stringnumbers
...
Implemented feature as in #560 (ints/doubles as strings)
2016-03-03 09:34:53 +08:00
Milo Yip
29c95808ac
Inlucde SIMD headers for writer.h
2016-03-02 17:58:16 +08:00
Sergey Kosarevsky
b5966c3290
Added missing static_cast
2016-03-02 03:07:53 +01:00
Sergey Kosarevsky
ae785ffb52
Don't use nullptr
2016-03-02 02:21:38 +01:00
Sergey Kosarevsky
57eae5595e
Added new unit test for kParseNumbersAsStringsFlag
2016-03-02 02:08:59 +01:00
Sergey Kosarevsky
bea3790a74
Don't insert terminating zero
2016-03-02 02:08:58 +01:00
Milo Yip
680c111278
Add debian docker file for development
2016-03-02 01:45:05 +08:00
Milo Yip
364545fe57
Prevent gcc wrong warning
2016-03-02 01:39:33 +08:00
Milo Yip
928caf92ed
Fix gcc strict-overflow warning
...
Fix #566 #568
2016-03-02 01:01:17 +08:00
Milo Yip
6c927047c4
Fix RAPIDJSON_(UN)LIKELY for VC
2016-03-01 10:16:40 +08:00
Sergey Kosarevsky
5642a81f24
Added JsonxWriter::RawNumber()
2016-02-29 20:21:28 +01:00
Sergey Kosarevsky
a9c79db580
Added CapitalizeFilter::RawNumber()
2016-02-29 18:48:15 +01:00
Sergey Kosarevsky
9748595960
Added MyHandler::RawNumber()
2016-02-29 18:25:14 +01:00
Sergey Kosarevsky
22d22145d2
Added GenericSchemaValidator::RawNumber()
2016-02-29 18:05:24 +01:00
Sergey Kosarevsky
1ffb335915
Added RawNumber() to fix unit tests
2016-02-29 18:05:05 +01:00
Sergey Kosarevsky
3dba370486
Added IterativeParsingReaderHandler::RawNumber()
2016-02-29 17:51:32 +01:00
Sergey Kosarevsky
43a2c5694e
Play nice with different encodings
2016-02-29 17:42:48 +01:00
Sergey Kosarevsky
9b13eacdf1
Add 0-character during in-situ numbers-as-strings parsing
2016-02-29 17:40:43 +01:00
Sergey Kosarevsky
f83b2c09e8
Fixed warning unused parameter ‘c’
2016-02-29 16:31:54 +01:00
Sergey Kosarevsky
e23bc0d1a5
Fixed numbers-as-strings for in-situ streams
2016-02-29 16:12:30 +01:00
Sergey Kosarevsky
7d4891e243
Added NumberStream::Push()
2016-02-29 16:11:31 +01:00
Sergey Kosarevsky
a214bdff4d
Removed unnecessary kParseInsituFlag check in ParseNumber()
2016-02-29 10:54:55 +01:00
Sergey Kosarevsky
6143f97b45
BaseReaderHandler::RawNumber() calls String() by default
2016-02-29 10:52:36 +01:00
Sergey Kosarevsky
f76174422d
Fixed Ch type
2016-02-28 21:29:16 +01:00
Sergey Kosarevsky
fb5c464221
Added PrettyWriter::RawNumber()
2016-02-28 21:29:06 +01:00
Sergey Kosarevsky
2bbfe0d8a8
Number() -> RawNumber() to avoid name clashes with the union Number
2016-02-28 18:50:04 +01:00