Cached json and text should be copied before returning.