> On 12 Aug 2019, at 14:01, Samuel Pelletier wrote:
>
> Hi Mark,
>
> If you want to simulate a WOAdaotor environment and have the app generate
> static file URL, configure your load balancer to add
> "x-webobjects-adaptor-version" header like I do using apache reverse proxy:
>
> RequestHead
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-d
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 );
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 ba