response parsing updated to JSON