diff options
author | Roger Meier <roger@apache.org> | 2014-10-08 23:28:09 +0200 |
---|---|---|
committer | Roger Meier <roger@apache.org> | 2014-10-08 23:41:18 +0200 |
commit | 964082a8eb06a5f36eff87132a048cbb3ea5e7a5 (patch) | |
tree | 36ae6b04cfcc9ef2bf2324939cbde5c31ea188c9 /.gitignore | |
parent | d5f3be5ebdb2973b41b9bc902696845ed0b43f75 (diff) | |
download | thrift-964082a8eb06a5f36eff87132a048cbb3ea5e7a5.tar.gz |
THRIFT-2712 PHP: add "json" option to create JsonSerializable code
This patch adds a "json" option to PHP code generation that will
make generated classes implement JsonSerializable, so thrift
objects may be converted to json using json_encode() easily.
If the "validate" option is enabled, the object's write validator
will be called, beyond that the jsonSerialize() method only outputs
non-null fields in the JSON object (JSON parsers get grumpy if you
send them null where they expect to see a number).
Patch: Stig Bakken
Github Pull Request: This closes #219
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index f072ade93..de55b3c9a 100644 --- a/.gitignore +++ b/.gitignore @@ -168,6 +168,7 @@ test-driver /lib/js/test/build /lib/nodejs/node_modules/ /lib/perl/MANIFEST +/lib/perl/MYMETA.json /lib/perl/MYMETA.yml /lib/perl/Makefile-perl.mk /lib/perl/blib @@ -199,7 +200,7 @@ test-driver /lib/php/src/ext/thrift_protocol/thrift_protocol.la /lib/php/src/ext/thrift_protocol/tmp-php.ini /lib/php/src/packages/ -/lib/php/test/phpunit.xml +/lib/php/test/TEST-*.xml /lib/php/test/packages/ /lib/py/dist/ /lib/erl/logs/ |