message: fix: Check valid JSON object before calling emitModuleTableUpdate
  Fixes
diff: @@ -47,11 +47,17 @@ RCT_EXPORT_MODULE();
  }
  + (void)emitModuleTableUpdate:(NSDictionary *)moduleTable {
  + if (![NSJSONSerialization isValidJSONObject:moduleTable]) {
  + return;
  + }
  + NSError *error = nil;
  NSData *jsonData = [NSJSONSerialization dataWithJSONObject:moduleTable
  options:0
  - error:nil];
  + error:&error];
  + if (nil == error) {
  [self postNotificationName:kModuleTable withPayload:[[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]];
  }
  +}
  + (void)postNotificationName:(NSString *)name withPayload:(NSObject *)object {
  NSDictionary<NSString *, id> *payload = @{@"payload": object};
  