stringifying key/value using NativeJSON before sending to Emitter

This way we can properly stringify JSON to keep nulls and omit
undefined values.

Refers to the https://github.com/deleet/couchbase-lite-java-core/commit/cf467cd33ccac6cd8de546b78bf5f8dc31818a5d