r/iOSProgramming • u/[deleted] • Feb 19 '17
Question I don't suppose Swift could possibly have more useless debug print strings - could it?
Example:
po json ▿ 2 elements ▿ [0] : 2 elements - .0 : accounts - .1 : 0 elements ▿ [1] : 2 elements - .0 : followers - .1 : 0 elements { ... }
Yeah - thats just brilliant.
0
Upvotes
2
u/chriswaco Feb 19 '17
Try po print(json). I try to not to ask why things don't work well and easily in Xcode because therein lies madness.
1
0
Feb 19 '17
[deleted]
1
u/meekismurder Feb 20 '17
I agree with this for any custom objects. However, in this case I am inferring this is a raw json payload, so it has not yet been unpacked into a defined data structure.
-2
2
u/[deleted] Feb 20 '17
Use
to show the jsonData while your receive it as a Data instance.