From 1f695ce47a06b4c87689c42239a04705bdd2bdc3 Mon Sep 17 00:00:00 2001 From: Maxim Bazuev Date: Sat, 3 Oct 2020 02:53:12 +0300 Subject: [PATCH] fix[ios]: not implemented method & compilation error --- src/ios/FirestorePluginJSONHelper.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ios/FirestorePluginJSONHelper.m b/src/ios/FirestorePluginJSONHelper.m index cd824fd..e7dfb51 100644 --- a/src/ios/FirestorePluginJSONHelper.m +++ b/src/ios/FirestorePluginJSONHelper.m @@ -229,6 +229,8 @@ + (NSString *)unwrap:(NSString *)stringValue ForPrefix:(NSString *)prefix { } + (NSArray *)JSONArrayToArray:(NSString *)array { - + NSData* data = [array dataUsingEncoding:NSUTF8StringEncoding]; + NSError *error; + return [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; } @end