Because there was a name conflict between json::Encoder and serialize::Encoder (line 2432) in the new example and in the Note Style Guide it is preferable to use this style of import (chapter Imports). So I'll use the same way to define serialize import in all the test.  
In my opinion its clearer to read and understand when the module is like that.