test via comparision with JSON