Correct data as an argument using json