computing graph stat via servlet with javax.json read and write testing