Make the jsonize function actually useful for something...

Previous version was trying to create a json string. This new version returns an object that jquery can easily serialize in an ajax call.