We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SDLJsonEncoder and Decoder classes add unnecessary complexity and improperly built singletons to call a single line of code
NSData* jsonData = [NSJSONSerialization dataWithJSONObject:dict options:kNilOptions error:&error];
The error is ignored in both cases. It also defines two protocols, that are only used in those classes (Defined in SDLDecoder.h and SDLEncoder.h)
SDLDecoder.h and SDLJsonDecoder can be removed and the line
NSDictionary* rpcMessageAsDictionary = [[SDLJsonDecoder instance] decode:self.payload];
can be replaced in SDLV1ProtocolMessage and SDLV2ProtocolMessage with
NSDictionary *jsonObject = [NSJSONSerialization JSONObjectWithData:msgBytes options:kNilOptions error:nil];
The same can be applied to SDLJsonEncoder, and the one class which calls its encode message
The text was updated successfully, but these errors were encountered:
Should be deprecated in a 4.X release.
Sorry, something went wrong.
No branches or pull requests
SDLJsonEncoder and Decoder classes add unnecessary complexity and improperly built singletons to call a single line of code
The error is ignored in both cases. It also defines two protocols, that are only used in those classes (Defined in SDLDecoder.h and SDLEncoder.h)
SDLDecoder.h and SDLJsonDecoder can be removed and the line
can be replaced in SDLV1ProtocolMessage and SDLV2ProtocolMessage with
The same can be applied to SDLJsonEncoder, and the one class which calls its encode message
The text was updated successfully, but these errors were encountered: