encoder is an existing Yajl::Encoder used to encode JSON
Encodes an instance of Hash to JSON
[Validate]