Actually parse JSON correctly

Forgot all about memory management and such. Unsure why an error is returned
because it seems to always parse correctly. Ignoring error and treating the
object as the actual thing for now seems to work.