Есть JSON файл типа в нем 6 записей:
[
{"t":1390017600,"hot":1,"koto":0.028,"rop":0.028},
{"t":1390017600,"hot":2,"koto":0.028,"rop":0.028},
{"t":1390017600,"hot":3,"koto":0.028,"rop":0.028},
{"t":1390017600,"hot":4,"koto":0.028,"rop":0.028},
{"t":1390017600,"hot":5,"koto":0.028,"rop":0.028},
{"t":1390017600,"hot":6,"koto":0.028,"rop":0.028}
]
При добавлении 7 записи нужно удалить первую запись
{"t":1390017600,"hot":1,"koto":0.028,"rop":0.028}
Таким образом JSON файлик должен иметь вид
[
{"t":1390017600,"hot":2,"koto":0.028,"rop":0.028},
{"t":1390017600,"hot":3,"koto":0.028,"rop":0.028},
{"t":1390017600,"hot":4,"koto":0.028,"rop":0.028},
{"t":1390017600,"hot":5,"koto":0.028,"rop":0.028},
{"t":1390017600,"hot":6,"koto":0.028,"rop":0.028},
{"t":1390017600,"hot":7,"koto":0.028,"rop":0.028}
]