fix issues with JSON serialization for elasticsearch indexing