Handle JSON encoding consistently

An alternative to the #118 PR. The SanitizeData filter removed circular references and we replace MultiJson with JSON to guarantee consistent and working JSON outputs.