Category:Pen computing[Clinical features of a non-parasitic hepatic cyst in infants: apropos of 12 cases].
Based on a series of 12 cases of non parasitic hepatic cyst of infant origin, the authors discuss the features of this rare disease. There was only a slight predominance of boys (3/5). Mean age was 5 years. Cysts were few in number and usually small, but several episodes of spontaneous increase in size had been observed. In most cases, the cysts were multiloculated. The cysts were generally situated in the left lobe. The most important differential diagnosis was a parasitic cyst. But the presence of eosinophilic bodies within the cysts allowed the distinction between these two conditions.Q:
How to filter elements in a JSON object
I have a JSON file with the following structure:
{
"name": "John",
"email": "john@test.com",
"phone": "1234567890"
}
And I'd like to filter the elements from the object that have a given string in them. For example, I'd like to have a JSON file like this:
{
"name": "John",
"email": "john@test.com"
}
I've been trying to do this with the JSON.parse method, but without any results.
Here's what I tried:
const parseCJSON = (json) => {
return JSON.parse(json);
}
I've tried to use JSON.parse with JSON.stringify but the results are the same.
The whole code is as follows:
const parseCJSON = (json) => {
return JSON.parse(json);
}
parseCJSON(
`{"name": "John", "email": "john@test.com", "phone": "1234567890"}`
);
And here's the function that I use to convert it into a JavaScript Object:
const myFunc = (input) => {
const json = JSON.stringify(input, null, 2);
const jsonObject = JSON.parse(json);
return jsonObject;
}
A:
Try using ac619d1d87
Related links:
Comments