Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-1101

[PATCH] RecommenderServlet: Wrong output when using JSON format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.7, 0.8
    • 0.8
    • classic

    Description

      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.

      Attachments

        1. RecommenderServlet.java.patch
          1.0 kB
          Julien Aymé

        Activity

          People

            srowen Sean R. Owen
            julien.ayme@gmail.com Julien Aymé
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified