IvanRave / logic-tree

Build a JSON object from a logic expression string
14 stars 8 forks source link

Do not use 'nodeX' as a name of andParameters #2

Open IvanRave opened 6 years ago

IvanRave commented 6 years ago
    {
      name: 'node0',
      content: 'a AND b OR c',
      orParams: [{
        text: 'a AND b',
        andParams: [{ name: 'a' }, { name: 'b' }]
      }, {
        text: 'c',
        andParams: [{ name: 'c' }]
      }]
    }