• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dump NSDictionary as JSON structure?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dump NSDictionary as JSON structure?


  • Subject: Re: Dump NSDictionary as JSON structure?
  • From: René Bock via Webobjects-dev <email@hidden>
  • Date: Tue, 13 Aug 2019 11:53:22 +0000
  • Thread-topic: Dump NSDictionary as JSON structure?

For serialializing a NSKeyValue Structure to JSON  you may use

https://cliftonlabs.github.io/json-simple/

You may postprocess the result string to get rid of the "class
com.webobjects.foundation.NSKeyValueCoding$Null" artifacts.




Am 13.08.2019 um 13:28 schrieb Markus Ruggiero via Webobjects-dev
<email@hidden<mailto:email@hidden>>:

I got the task of maintaining a rather complex WO app. The original developer
had ideas about keeping tons of data in memory (no idea why). For this he
created several nested NSDictionary structures to cache data across page
navigation. You can imagine there being lots of issues when users go back and
forth through page sequences. Debugging this is a nightmare.

What I want is a method that I can call from anywhere and pass it such a cache
dict. This method should then create (preferrably) a JSON structure (XML, PLIST
is just too chatty, but would be ok) that I can dump into the log allowing me
to track that cache in a human readable form while running user interactions.
Anyone has something or knows of anything that would help me write such a
method? I didn't spend too much time but I looked at the Wonder frameworks
quickly - nothing simple jumped out.

Thanks
---markus---


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list
(email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

Mit freundlichen Grüßen

René Bock

--
Telefon: +49 69 650096 18

salient GmbH, Lindleystraße 12, 60314 Frankfurt
Telefon Zentrale: 069 / 65 00 96 - 0  |
www.salient-doremus.de<http://www.salient-doremus.de>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Dump NSDictionary as JSON structure? (From: Markus Ruggiero via Webobjects-dev <email@hidden>)

  • Prev by Date: Re: Dump NSDictionary as JSON structure?
  • Next by Date: Re: DirectConnect and Security
  • Previous by thread: Re: Dump NSDictionary as JSON structure?
  • Next by thread: Safari ignores autocomplete="off" in AjaxAutoComplete component
  • Index(es):
    • Date
    • Thread