clean emtpy objects from JSON