I have json file using in web application and it's size is too big that's make little bit time consuming.
E.g json file is
{
"Key 1":"record 1 successfully created!",
"Key 2":"record 2 successfully created!",
"Key 3":"record 3 successfully created!",
"Key 4":"record 4 successfully created!",
"Key 5":"record 5 successfully created!",
"Key 6":"record 6 successfully created!",
"Key 7":"record 7 successfully created!",
"Key 8":"record 8 successfully created!",
"Key 9":"record 9 successfully created!",
"Key 9":"record 9 successfully created!",
"Key 9":"record 9 successfully created!",
}
as you can see few things (like "successfully created!") that repeated continuously and this gonna file size big and large. Can we apply DRY (Don't Repeat Yourself) principal in this json file plus are there any other suggestion to make json file size small.
Thanks Yasir Shabbir
Aucun commentaire:
Enregistrer un commentaire