Julien Aymé created MAHOUT-1101:
-----------------------------------

             Summary: [PATCH] RecommenderServlet: Wrong output when using JSON 
format 
                 Key: MAHOUT-1101
                 URL: https://issues.apache.org/jira/browse/MAHOUT-1101
             Project: Mahout
          Issue Type: Bug
          Components: Collaborative Filtering, Integration
    Affects Versions: 0.7, 0.8
            Reporter: Julien Aymé
            Assignee: Sean Owen
            Priority: Trivial
         Attachments: RecommenderServlet.java.patch

When using "json" as format for the RecommenderServlet, the JSON returned is 
not valid: there is a comma ',' just before the closing bracket of the "item" 
array.

The fix is trivial: do not add a ',' if the item is the last one.
Patch is attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to