question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pjson not returning expected value with Swift

See original GitHub issue

Using the latest version of chisel from Homebrew. When I use pjson on a [String: String] dictionary in Swift, it doesn’t appear to work.

(lldb) pjson response 
error: error: use of undeclared identifier 'response'
error: error: use of undeclared identifier 'None'
None

Happy to help contribute a fix if this only works for Objective-C!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
edwardIshaqcommented, Oct 26, 2018

This worked for me:

pjson json as NSDictionary (There is a ` surrounding the json as NSDictionary part)

1reaction
dlocommented, Feb 2, 2018

Sounds great, let me know if you’d like an extra hand.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON Data is not returning as a string in swift - ios
I need to return currentWeather as a String with its value currently I am not able to return the data as a string...
Read more >
[Solved]-Why is my JSONP returning Invalid JSON-django
You need to tell jQuery that this is JSONP (which is actually just a script. It's a call to a function with your...
Read more >
HTTP status and error codes for JSON | Cloud Storage
An HTTP status code value, without the textual description. Example values include: 400 (Bad Request), 401 (Unauthorized), and 404 (Not Found).
Read more >
Working With JSON In Swift With SwiftyJSON
Working with JSON can be cumbersome, but not if it's up to SwiftyJSON! ... Now the expected value type is double, so strings...
Read more >
Query (Feature Service/Layer)—ArcGIS REST APIs
This applies to x- and y-values only (not m- or z-values). Example. geometryPrecision=3. outSR. The spatial reference of the returned geometry ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found