writing json dumps only