Feature: hash options for only, methods and include to_json options

Hey guys, I just submitted this pull request that improves the options for JSON serialization. If you have the time, could you please give me some feedback on the commit?

https://github.com/rails/rails/pull/11604

Thanks for any feedback!