Add a parameter for json encoding

Hello,
I needed to use JSON_FORCE_OBJECT in a project and noticed there was no support for the json_encode $options parameter. The phpdoc is a copy paste from json_encode documentation.
Cheers
Romain