I need to define a layout configuration file as follows
{
  'row' : {
    'height' : 20%,
    'content' : 'BLOCK_MENU'
  },
  'row' : {
    'col': {
      'width' : 30%,
      'content': 'BLOCK_SIDEBAR'
    },
    'col' : {
      'width' : 70%,
      'content' : 'BLOCK_MAIN_CONENT'
    }
  }
}
But this is neither a valid javascript object nor a json. I need to convert it to json or js object. Since this configuration file is to be written by user I cannot make the format too strict and complicated. Is there any way to do this without using LEX or bison? I'm using nodejs at server side.

