Hello again,
I'm having an odd problem.
I'm encoding an associativeArray into a JSON string using the librokudev GITHUB repository for storage into the registry. It looks like this:
Data = {
name: Cam
refresh: 1
url:
http://somelongurl title: Cam
randomize: YES
}
which is serialized into this string:
{"name":"Cam","refresh":"1","url":"http://somelongurl","title":"Cam","randomize":"YES"}
Later, I read this back out of the registry, parse it, and allow the user to edit it and save it again. The problem is that when it's re-saved, despite the "print" of the array LOOKING right, it now serialize's to this:
{"name":"String","refresh":"String","url":"String","title":"String","randomize":"String"}
Something weird is happening when data that looks just fine is re-encoded using the rdSerialize() function of librokudev. (using "JSON" option) The only thing I'm doing to the associative array before saving is calling "rdJSONBuilder(data)" (which simply calls rdSerialize(data,"JSON") )
Any ideas?