fixed json passing string error