Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: wwJSONSerializer.Deserialize

$
0
0
Re: wwJSONSerializer.Deserialize
Web Connection 5.0
Re: wwJSONSerializer.Deserialize
02/15/2012
02:55:30 PM
3FM0VZOUQ Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None
Hi Raymond,

All West Wind tools make one assumption: That SET EXACT OFF.

wcdocs:_2di113nki.htm

This has been done for performance reasons (at the time) to avoid having to set and reset settings through out the myriad off functions in the framework.

+++ Rick ---

Hi Rick,

Just wanted to report a simple issue that may have already been fixed. (Have not updated in a while)

I was having problems after deploying a new update to a clients system. In a nutshell, I was able to trace it to the deserialize routine being dependent on the environment to function correctly. (I.E. "exact" being set to "off")

I made it work by saving/restoring "exact", but real fix should be in deserialize itself. (My opinion)

Instead of using "=" (with entire param string) and relying on "exact off"...

FUNCTION Deserialize(lcValue) IF lcValue = [{] RETURN this.ParseObject(lcvalue) ENDIF . . .

Strip first char and check it...

FUNCTION Deserialize(lcValue) local cChr cChr = left( lcValue, 1 ) IF cChr = [{] RETURN this.ParseObject(lcvalue) ENDIF . . .

Anyway, I'm a great fan and don't know how you do it. (I still think you have discovered a way to clone yourself!) I will enter a "Success Story" post about how I have used your code.



Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii

Viewing all articles
Browse latest Browse all 10393

Trending Articles