json header reader/writer implemented