try using json strean reader/writer