data.json

Exception message in string reader says it is an array reader problem

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

The function read-quoted-string currently uses the same error message as read-array: "JSON error (end-of-file inside array)". Looks like copy and paste error to me. Fix will be trivial IMHO.

  1. djson-6-patch.diff
    14/Dec/12 5:26 AM
    0.9 kB
    Stefan Kamphausen
  2. djson-6-tests-patch.diff
    14/Dec/12 5:53 AM
    1 kB
    Stefan Kamphausen

Activity

Hide
Stuart Sierra added a comment -

applied, with slight modifications

Show
Stuart Sierra added a comment - applied, with slight modifications
Hide
Stefan Kamphausen added a comment -

incremental patch to add tests for detection of EOF in unterminated arrays and strings. This diff is against HEAD~1, i.e. not against master and thus does not contain the fix itself.

Show
Stefan Kamphausen added a comment - incremental patch to add tests for detection of EOF in unterminated arrays and strings. This diff is against HEAD~1, i.e. not against master and thus does not contain the fix itself.
Hide
Stefan Kamphausen added a comment -

Trivial patch which changes the error message.

Show
Stefan Kamphausen added a comment - Trivial patch which changes the error message.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: