X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJMapping.m;h=1b05c424bfe708ab23698b07448ffea79c368eec;hp=3d5cd67f5a7470c4d143f8e6173404861444c16d;hb=HEAD;hpb=24bdb92798b9abe86c7954042a47523791736b7c diff --git a/Classes/NJMapping.m b/Classes/NJMapping.m index 3d5cd67..1b05c42 100644 --- a/Classes/NJMapping.m +++ b/Classes/NJMapping.m @@ -39,7 +39,7 @@ if ([entries isKindOfClass:NSDictionary.class]) { for (id key in entries) { if ([key isKindOfClass:NSString.class]) { - NJOutput *output = [NJOutput outputDeserialize:entries[key]]; + NJOutput *output = [NJOutput outputWithSerialization:entries[key]]; if (output) _entries[key] = output; } @@ -102,7 +102,9 @@ NSInputStream *stream = [NSInputStream inputStreamWithURL:url]; [stream open]; NSDictionary *serialization = stream && !*error - ? [NSJSONSerialization JSONObjectWithStream:stream options:0 error:error] + ? [NSJSONSerialization JSONObjectWithStream:stream + options:(NSJSONReadingOptions)0 + error:error] : nil; [stream close];