1
0
Fork 0
Commit Graph

124 Commits (058f204dd804ac14e8d976fac24536938db3d1e2)

Author SHA1 Message Date
Martin Hasoň ff0f833b3e Added support for JSON_UNESCAPED_UNICODE and fixed parsing string 2012-02-15 12:00:04 +01:00
Jordi Boggiano 256bfedea1 Merge remote-tracking branch 'jalliot/proxy2'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Repository/PearRepository.php
2012-02-14 17:01:15 +01:00
Martin Hasoň e46e1fb981 Changed method to static - JsonFile::encode 2012-01-24 15:57:23 +01:00
Martin Hasoň 76a2be5ae0 Fixed detection of missing comma and added detection of missing colon in json 2012-01-24 15:10:55 +01:00
Jordan Alliot 054faef5eb New context at each call and possibility to add more options and params to the context 2012-01-21 20:58:36 +01:00
Jordan Alliot 9c27e38654 Moved proxy handling to a new class so that it can be reused in other parts of Composer 2012-01-21 20:58:36 +01:00
Jakub Zalas dcdb761e17 Used strict comparision. 2012-01-19 00:14:48 +00:00
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.
2012-01-19 00:01:56 +00:00
Jordi Boggiano bfe28905d0 Fix formatting and make pretty-printing optional 2012-01-17 01:33:02 +01:00
Justin Rainbow 447230d77a Extracting JsonFile additions for prettifying JSON 2012-01-16 16:42:36 -07:00
Fabien Potencier 90f2a9f406 Use JSON_PRETTY_PRINT option when dumping JSON to help debugging 2011-12-27 11:33:43 +01:00
Jordi Boggiano 293c45fabe Fix unescaped backslash issue 2011-11-05 23:53:20 +01:00
Jordi Boggiano 066a0db752 Add detection for unescaped backslashes 2011-11-01 16:02:56 +01:00
Jordi Boggiano f5aa3e6c79 Add detection for extra commas in arrays 2011-11-01 14:13:22 +01:00
Jordi Boggiano c129d570e8 Add more json validation rules 2011-10-31 15:01:46 +01:00
Fabien Potencier 1450ebd837 Fix bug in an exception, added unit tests 2011-10-30 09:09:46 +01:00
Jordi Boggiano 17286e993c Add exception when json files can not be read 2011-10-23 19:40:32 +02:00
Jordi Boggiano be769ea1ac Add user-agent header to json fetches, fixes #39 2011-10-02 22:44:10 +02:00
Jordi Boggiano 1a9de17a88 Detect and report common mistakes in json syntax, refs #36 2011-10-02 21:14:00 +02:00
Jordi Boggiano cad0967788 json_decode returns null on error, not false 2011-10-02 21:04:37 +02:00
Jordi Boggiano 9210500714 Handle false and empty decoded json values as valid 2011-10-02 20:49:26 +02:00
Jordi Boggiano 18e28a2a9f Make sure .composer dir is created before writing in it 2011-10-02 20:46:33 +02:00
everzet 1cca62dc97 move json parsing instructions into single class object 2011-10-01 16:01:33 +03:00
everzet 1fcb833902 added Json parsing abstraction 2011-10-01 15:34:09 +03:00