added new method in Emmiter where you pass JSON values directly

This is required for the JS-based views in order to properly
serialise Rhino objects to JSON, because when using standard
JSON mapper, undefined values are treated as nulls, which is a
different behaviour from JSON.stringify