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
Jordi Boggiano
bfe28905d0
Fix formatting and make pretty-printing optional
13 years ago
Justin Rainbow
447230d77a
Extracting JsonFile additions for prettifying JSON
13 years ago
Fabien Potencier
90f2a9f406
Use JSON_PRETTY_PRINT option when dumping JSON to help debugging
13 years ago
Jordi Boggiano
293c45fabe
Fix unescaped backslash issue
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
Fabien Potencier
1450ebd837
Fix bug in an exception, added unit tests
13 years ago
Jordi Boggiano
17286e993c
Add exception when json files can not be read
13 years ago
Jordi Boggiano
be769ea1ac
Add user-agent header to json fetches, fixes #39
13 years ago
Jordi Boggiano
1a9de17a88
Detect and report common mistakes in json syntax, refs #36
13 years ago
Jordi Boggiano
cad0967788
json_decode returns null on error, not false
13 years ago
Jordi Boggiano
9210500714
Handle false and empty decoded json values as valid
13 years ago
Jordi Boggiano
18e28a2a9f
Make sure .composer dir is created before writing in it
13 years ago
everzet
1cca62dc97
move json parsing instructions into single class object
13 years ago
everzet
1fcb833902
added Json parsing abstraction
13 years ago