[wp-hackers] Why not json or xml instead of serialised data in DB

Deepak Mittal dpac.mittal2 at gmail.com
Tue Jun 28 02:26:38 UTC 2011

Just saw a post regarding how to move your domain on wp-hackers, and saw the
issue of serialised data. I knew it from before but just thought it'd be
extremely benefitial if wordpress used json or xml (json in particular).

Although, I know it just takes one function to deserialise an array, same
level of simplicity can be introduced for a json file as well. I'm proposing
this because there are a lot of issues with serialised data in DB. For one
if there is just a change of single byte, the data goes corrupt. This
creates a lot of unneeded trouble for non-technical users.

I'm sure I've missed some points as to why wordpress isn't using json and
I'm sure the developers must've already given a thought about it. Can
someone enlighten me?

Deepak Mittal,
Twitter - @dpacmittal

More information about the wp-hackers mailing list