You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2014/11/21 16:15:34 UTC
[jira] [Resolved] (UIMA-4116) change format of JSON map names so
they can be JavaScript identifiers
[ https://issues.apache.org/jira/browse/UIMA-4116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marshall Schor resolved UIMA-4116.
----------------------------------
Resolution: Fixed
> change format of JSON map names so they can be JavaScript identifiers
> ---------------------------------------------------------------------
>
> Key: UIMA-4116
> URL: https://issues.apache.org/jira/browse/UIMA-4116
> Project: UIMA
> Issue Type: Improvement
> Components: Core Java Framework
> Reporter: Marshall Schor
> Assignee: Marshall Schor
> Fix For: 2.7.0SDK
>
>
> In Javascript, if you have an hash (map) object in a variable, e.g. "cas", you reference the value of a key using {{ cas["keyname"] }} or, better: {{ cas.keyname }}. For the 2nd form to work, keyname must be a valid Javascript name. Names like @views are not valid. So change these to forms e.g. _views which are valid.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)