Jordi Boggiano
3b48a1fea6
Fix JsonManipulator handling of package links, fixes #1465
12 years ago
Jordi Boggiano
3bd6af690d
Allow JsonManipulator::addMainKey to update top level keys as well
12 years ago
Jordi Boggiano
3d953384fa
Fix indenting detection in JsonManipulator, fixes #1788
12 years ago
Jordi Boggiano
b4d691e46d
Add test for escape sequences
12 years ago
Jordi Boggiano
e348642aa7
Fix json manipulator handling of escaped backslashes, fixes #1588
12 years ago
Jordi Boggiano
a7c950cddd
Add support for github-oauth in config command
12 years ago
Jordi Boggiano
dea4bdf8f0
Expand {} into a new line before manipulating json, fixes #1481
12 years ago
Jordi Boggiano
24963fb4c8
Fix handling of arrays in json manipulator
12 years ago
Jordi Boggiano
5cb9a6ead7
Write in the json directly without reformatting the whole file - skip validation since that is not really the job of the config command
12 years ago
Jordi Boggiano
521bbe6556
CS fixes
12 years ago
Jordi Boggiano
db16f68fbf
Tweak exception messages
12 years ago
Robert Schönthal
e96e06946f
fixed json file tests
12 years ago
Robert Schönthal
c517ac6404
fixed issue #347 added file to json validation exception
12 years ago
Jordi Boggiano
f5e0918104
Add JsonManipulator class for doing raw manipulation of json strings
13 years ago
Jordi Boggiano
a30e6109bf
Fix 5.4.0 interop in formatting of empty array/objects
13 years ago
Martin Hasoň
947d429c61
Removed definition of global constants reserved for PHP >=5.4 and fixed tests
13 years ago
Jordi Boggiano
bd54e43d37
Rework JsonFile API slightly, avoid tokenizing in php if the syntax is valid
13 years ago
digitalkaoz
6929c42848
added schema/syntax validation for composer.json
13 years ago
Volker Dusch
9ede082371
Skip tests if mbstring is not installed
13 years ago
Martin Hasoň
e621495c4d
Added support for JSON_UNESCAPED_SLASHES
13 years ago
Martin Hasoň
ff0f833b3e
Added support for JSON_UNESCAPED_UNICODE and fixed parsing string
13 years ago
Martin Hasoň
76a2be5ae0
Fixed detection of missing comma and added detection of missing colon in json
13 years ago
Jakub Zalas
c680ec7e51
Fixed json encoding when quoted value contained trailing backslash.
...
Condition checking if current character is inside a quoted string did not consider the case when backslash before quote is escaped with another backslash.
13 years ago
Justin Rainbow
447230d77a
Extracting JsonFile additions for prettifying JSON
13 years ago
Jordi Boggiano
b7f6cf69ab
Add tests and fixes some issues
13 years ago
Jordi Boggiano
066a0db752
Add detection for unescaped backslashes
13 years ago
Jordi Boggiano
f5aa3e6c79
Add detection for extra commas in arrays
13 years ago
Jordi Boggiano
c129d570e8
Add more json validation rules
13 years ago