Github user YolandaMDavis commented on the issue:

    https://github.com/apache/nifi/pull/674
  
    Here is the error that occurred before this fix <img width="1397" 
alt="shiftrparseerror" 
src="https://cloud.githubusercontent.com/assets/1371858/16953212/3b7b93e0-4d9a-11e6-879d-080c9ec9ed89.png";>
    
    To test use the following specification for Shiftr ensure that spec is 
valid:
    
    `{
          "\\@context": {
            "name": "&1.Name",
            "ingredient": "&1.Inputs",
            "yield": "\\@context.Makes",
            "*": "&1.&"
          },
          "name": "Name",
          "ingredient": "Inputs",
          "yield": "Makes",
          "*": "&"
        }
     `
    
    Also the below test input can be used in the Advance (from 
http://jolt-demo.appspot.com/#json-ld-escaping)
    
    `{
      "comment" : "pulled from http://json-ld.org/playground/ example recipe.  
Also, Mojitos are good.",
    
      "@context": {
        "name": "http://rdf.data-vocabulary.org/#name";,
        "ingredient": "http://rdf.data-vocabulary.org/#ingredients";,
        "yield": "http://rdf.data-vocabulary.org/#yield";,
        "instructions": "http://rdf.data-vocabulary.org/#instructions";,
        "step": {
          "@id": "http://rdf.data-vocabulary.org/#step";,
          "@type": "xsd:integer"
        },
        "description": "http://rdf.data-vocabulary.org/#description";,
        "xsd": "http://www.w3.org/2001/XMLSchema#";
      },
      "name": "Mojito",
      "ingredient": [
        "12 fresh mint leaves",
        "1/2 lime, juiced with pulp",
        "1 tablespoons white sugar",
        "1 cup ice cubes",
        "2 fluid ounces white rum",
        "1/2 cup club soda"
      ],
      "yield": "1 cocktail",
      "instructions": [
        {
          "step": 1,
          "description": "Crush lime juice, mint and sugar together in glass."
        },
        {
          "step": 2,
          "description": "Fill glass to top with ice cubes."
        },
        {
          "step": 3,
          "description": "Pour white rum over ice."
        },
        {
          "step": 4,
          "description": "Fill the rest of glass with club soda, stir."
        },
        {
          "step": 5,
          "description": "Garnish with a lime wedge."
        }
      ]
    }`



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to