JSON.encode(vanillaObject)

On Fri, Nov 19, 2010 at 10:37 AM, divinentd <[email protected]> wrote:

> Hi All,
> I'm working on migrating a 1.2.4 plugin (HistoryManager) to 1.3. It's
> mostly been a bunch of easy stuff like $merge and $type, but now I'm
> running into something that might have been an undocumented method
> which was dropped: Hash.toJSON();
>
> I can use Hash.toQueryString() and then manually convert it over using
> String.replace, but maybe there's a more elegant MooTools method
> approach?
>
> The goal is to store a JSON string in the hash, like this:
>
> http://arieh.github.com/HistoryManager/#{%22color%22:%22red%22,%22size%22:1}
>

Reply via email to