At this point, I suspect the memory pointed to by json_pretty_text is freed. Either that or we are leaking memory. I think we should only do decref after we have done everything. (Also, this might be a way to only do json_loads once).