def to_json(self):
return {<EOL>'<STR_LIT:location>': self.location.to_json(),<EOL>'<STR_LIT>':<EOL>self.direct_normal_irradiance.to_json(),<EOL>'<STR_LIT>':<EOL>self.diffuse_horizontal_irradiance.to_json(),<EOL>'<STR_LIT>': self.timestep,<EOL>'<STR_LIT>': self.is_leap_year<EOL>}<EOL>
Write Wea to json file
            {
            "location": {} , // ladybug location schema
            "direct_normal_irradiance": (), // Tuple of hourly direct normal
                irradiance
            "diffuse_horizontal_irradiance": (), // Tuple of hourly diffuse
                horizontal irradiance
            "timestep": float //timestep between measurements, default is 1
            }