Start to add toJSON method
Implement #serialize and #toJSON
PHP docblock
Merge pull request #11 from matthew-andrews/to-json

#toJSON