Improved workaround for Json false pointer issues (GC memory leaks and swap failing).