Removes trailing whitespaces; removes module() statement; fixes json.null encoding.
Fixes to load correct json with dofile; removes trailing whitespaces.