Saving data into JSON for leaflt importing.