Anil Kumar Murmu

Anil Kumar Murmu

  • NA
  • 744
  • 337.2k

How to make json object ready only

Aug 2 2016 10:50 AM

Say I have a JSON object

var student = {name: "Anil", Age: 27};

student.Age = 30; // I want to restrict this code.
 
Please help me to understand, how can we make JSON object read only type. 

Answers (5)