Web Technology II20795 marksJSON file parsing and reading
For the following JSON file named BIT.JSON, write a PHP program to read information from this JSON file: {Name: "Gunadi", Email: "[email protected]", Dob: "January 1", Age: 30}
For the following JSON file named BIT.JSON, write a PHP program to read information from this JSON file: {Name: "Gunadi", Email: "[email protected]", Dob: "January 1", Age: 30} [5]
The listing in the question is written as a JavaScript object literal, with the property names bare: That is not valid JSON, and jsondecode() rejects it and returns null, because the JSON grammar requires every key to be a double quoted string. The file BIT.JSON must therefore hold the quoted for...