147 Commits (29761cf78d2a85986c53c802b2a38c412689d437)

Author SHA1 Message Date
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago
Jordi Boggiano 31330a739f Fix CS 12 years ago
Jordi Boggiano 8ffe3c2e26 Cosmetic fixes 12 years ago
Jordi Boggiano 27f8019dbd Refactor init & require commands 12 years ago
Jordi Boggiano f5e0918104 Add JsonManipulator class for doing raw manipulation of json strings 12 years ago
Jordi Boggiano b33496c853 Merge remote-tracking branch 'jeremyFreeAgent/master'
Conflicts:
	doc/03-cli.md
12 years ago
Jordi Boggiano c440b4594a More PSR-2 goodness 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jordi Boggiano f516c1de48 Add license info for code snippet we reused 12 years ago
Jordi Boggiano a30e6109bf Fix 5.4.0 interop in formatting of empty array/objects 12 years ago
Jordi Boggiano 69864aeb13 Make check more explicit 12 years ago
Jordi Boggiano 3bdee3aabe Detect and report UTF8 encoding errors in json files 12 years ago
Jordi Boggiano b14366ed08 Fix exception when a json file can not be downloaded 12 years ago
Jérémy Romey 260d7d434f Add a command for adding package to composer.json
Updated doc for require command
12 years ago
Jordi Boggiano 7f65dd7409 Use RemoteFilesystem everywhere we do http requests 12 years ago
Martin Hasoň 947d429c61 Removed definition of global constants reserved for PHP >=5.4 and fixed tests 13 years ago
Jordi Boggiano 7ceca9b789 Suppress relaxed schema and build it on the fly in php, refs #151 13 years ago
Jordi Boggiano 82dd1c1f7f Add relaxed schema for application packages that do not need to be distributed 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
Martin Hasoň e621495c4d Added support for JSON_UNESCAPED_SLASHES 13 years ago
Jordi Boggiano d1d9c715c9 Add newline at the end of formatted jsons 13 years ago
Jordi Boggiano 33fcb959ea Refactor JsonFile::encode to match json_encode 13 years ago
Martin Hasoň ff0f833b3e Added support for JSON_UNESCAPED_UNICODE and fixed parsing string 13 years ago
Jordi Boggiano 256bfedea1 Merge remote-tracking branch 'jalliot/proxy2'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Repository/PearRepository.php
13 years ago
Martin Hasoň e46e1fb981 Changed method to static - JsonFile::encode 13 years ago
Martin Hasoň 76a2be5ae0 Fixed detection of missing comma and added detection of missing colon in json 13 years ago
Jordan Alliot 054faef5eb New context at each call and possibility to add more options and params to the context 13 years ago
Jordan Alliot 9c27e38654 Moved proxy handling to a new class so that it can be reused in other parts of Composer 13 years ago
Jakub Zalas dcdb761e17 Used strict comparision. 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
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