Changed json conversion, removed encoder registering