X Tutup
The Wayback Machine - https://web.archive.org/web/20210106085710/https://github.com/SwiftyJSON/SwiftyJSON/issues/1061
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boolean fragment can't be decoded #1061

Open
cjmaroney01 opened this issue Apr 22, 2020 · 0 comments
Open

boolean fragment can't be decoded #1061

cjmaroney01 opened this issue Apr 22, 2020 · 0 comments

Comments

@cjmaroney01
Copy link

@cjmaroney01 cjmaroney01 commented Apr 22, 2020

i have data from the server that is just a boolean "true"

What did you expect to happen?

in previous versions of SwiftyJSON this would be converted to JSON with JSON(data: data!) and would work

What actually happened instead?

in the current version, this throws an exception and it says that fragments are not set to be allowed.

Environment

List the software versions you're using:

  • SwiftyJSON: i am using version 5.0.0, and i just did "pod update" yesterday (4/21/20)
  • Xcode Version: 11.4.1 (Open Xcode; In menubar: Xcode > About Xcode)
  • Swift Version: swift 5 xcode default (Open Xcode Preferences; Components > Toolchains. If none, use Xcode Default.)

Please also mention which package manager you used and its version. Delete the
other package managers in this list:

  • Cocoapods: 1.9.1 (Use pod --version in Terminal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.
X Tutup