Json::encode did not handle JsonSerializable objects
Merge pull request #1568 from cebe/jsonserializable

Json::encode did not handle JsonSerializable objects