RM json hacks from scripts.