You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Julien Aymé (JIRA)" <ji...@apache.org> on 2012/10/12 11:31:04 UTC

[jira] [Updated] (MAHOUT-1101) [PATCH] RecommenderServlet: Wrong output when using JSON format

     [ https://issues.apache.org/jira/browse/MAHOUT-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julien Aymé updated MAHOUT-1101:
--------------------------------

    Attachment: RecommenderServlet.java.patch

The proposed patch
                
> [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
>              Labels: patch
>         Attachments: RecommenderServlet.java.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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