Hi Markus, check out Gson. I've been using it for a few years and it works great. Simple things are simple, but it's also powerful, allowing you to pass in custom serializers, customize date formats etc.
Simple example: String jsonString = new GsonBuilder().create().toJson( someNSDictionary ); Cheers, - hugi > On 13 Aug 2019, at 11:28, Markus Ruggiero via Webobjects-dev > <webobjects-dev@lists.apple.com> wrote: > > 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 (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is > > This email sent to h...@karlmenn.is _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com