added .json to substitution for r to print json