includes/clientside/static/json.js
changeset 582 a38876c0793c
parent 40 723bb7acf914
child 873 285f0c6d9c9a
equal deleted inserted replaced
581:5e8fd89c02ea 582:a38876c0793c
   148     {
   148     {
   149   
   149   
   150         var j = eval('(' + string + ')');
   150         var j = eval('(' + string + ')');
   151         if (typeof filter === 'function') {
   151         if (typeof filter === 'function') {
   152   
   152   
   153             function walk(k, v) {
   153             function walk(k, v)
       
   154             {
   154                 if (v && typeof v === 'object') {
   155                 if (v && typeof v === 'object') {
   155                     for (var i in v) {
   156                     for (var i in v) {
   156                         if (v.hasOwnProperty(i)) {
   157                         if (v.hasOwnProperty(i)) {
   157                             v[i] = walk(i, v[i]);
   158                             v[i] = walk(i, v[i]);
   158                         }
   159                         }