Change variable name from str to json. Fix indentation.