« Previous | Next » 

Revision 095fb4f8

ID095fb4f8f4b97055e1d38ceb9e3d43e4d23d5372
Parent 6d138117
Child f97149f6

Added by Bastian Waidelich almost 7 years ago

[TASK] Support for quoted keys in Fluid arrays

The syntax for Fluid arrays is based on the JSON syntax, but up to now
it didn't support quoted arrays, so::

{x:someViewHelper(arrayArgument: '{"foo": "bar"}')}

wouldn't parse.

With this change the parser is a little less strict for arrays allowing
the keys to be quoted with single or double quotes.
It also allows to use square brackets and dots within quoted keys::

<x:someViewHelper arrayArgument="{'this[will]': 'work'}" />
{x:someViewhelper(arrayArgument: '{"and.so": "will.this"}'}

Change-Id: Iddeb4e19bee05aa64b438079eca295953e3be46b
Releases: master, 3.0
Resolves: FLOW-248

  • added
  • modified
  • copied
  • renamed
  • deleted