diff --git a/MTHawkeye/NetworkPlugins/Monitor/HawkeyeCore/MTHNetworkRecordsStorage.m b/MTHawkeye/NetworkPlugins/Monitor/HawkeyeCore/MTHNetworkRecordsStorage.m index 24862b2..f0b5c14 100644 --- a/MTHawkeye/NetworkPlugins/Monitor/HawkeyeCore/MTHNetworkRecordsStorage.m +++ b/MTHawkeye/NetworkPlugins/Monitor/HawkeyeCore/MTHNetworkRecordsStorage.m @@ -62,7 +62,7 @@ - (MTAppenderFile *)networkRecordsFile { - (void)storeNetworkTransaction:(MTHNetworkTransaction *)transaction { NSDictionary *dict = [transaction dictionaryFromAllProperty]; - if ([dict count] == 0) { + if ([dict count] == 0 || ![NSJSONSerialization isValidJSONObject:dict]) { return; }