read and manipulate json