« Previous | Next » 

Revision dddf78b7

IDdddf78b7780bc211a9b525dfda5ad6d4fd3015fc
Parent d0d78704
Child 21095469

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