JSONKit icon indicating copy to clipboard operation
JSONKit copied to clipboard

Container With Pre-Encoded Strings

Open pathsny opened this issue 10 years ago • 1 comments

I have an implementation that currently stores a bunch of objects in a dictionary and eventually serializes the entire thing. For the purpose of some additional changes we're making in code, I'd like to store the JSONSerialized versions of some of these objects in the dictionary.

I'm unable to figure out how to encode this dictionary with pre-serialized strings without having them encoded twice. Is this something doable?

pathsny avatar Jun 03 '14 02:06 pathsny

My specific use case is a codebase where different sections of a mobile app can choose to log data to the server and I can choose to count the bytes logged by a section of the app as they are being added and implement rate control for example. But still make sure that when I actually log data, I serialize an entire container.

pathsny avatar Jun 13 '14 22:06 pathsny