Tags: brianchen003/Argo
Tags
Use `map` instead of `flatMap` when parsing `JSONValue.parse` returns a non-optional `JSONValue`. Unfortunately, because of Swift Magic, Xcode will happily compile when using `flatMap` with a function that returns a non-optional. This can (but doesn't always) result in a EXC_BAD_ACCESS error at runtime. Using `map` here is actually the correct behavior, but should also fix this crash that people were seeing.
PreviousNext