Fix for issue relating to writing empty objects
Fix for issue relating to writing empty objects

The use of "!_.isEmpty" makes it impossible to write empty json structures like empty arrays or empty objects. A switch to using "isObject" enables this.
stefanwalther/qrs