On Wed Dec 19 00:53:54 2007, MAKAMAKA wrote:
Show quoted text> >There seems to be no architectural reason that objToJson / jsonToObj
> can't handle scalars.
> >Coud the default behaviour be modified?
>
> No, I won't.
> JSON format doesn't allow any simple scalars.
> So, objToJson and jsonToObj too.
So not only did you quickly switch over to a brand-new interface, you're
publicly announcing that you refuse to follow the standard, polite
practice of having a deprecation period where the old API is supported
(with warnings) while the new API is encouraged.
Failing that, you could have done a better job of announcing the change
up front (was this even announced anywhere? I never heard of it) and
giving people plenty of lead time to know when the need to change their
code. Instead, the first I heard about this was when I received a
confusing bug report on my Test::JSON module.
Since you can no longer give us lead time to prepare for the change,
would you please reconsider and at least provide a backwards-compatible
API (warnings are fine) that give people a transition period rather than
just breaking their code?
Cheers,
Ovid