json rpc controllers and enum deserializer performance improvement