fix methods in json