Used JSON.stringify to parse the objects