danwrong/restler — pull request #57 by dhm116 (2012-01-03 00:37:24+00:00)
Title: Empty server response causes "Unexpected end of input" exception

This adds a simple check to the data length in addition to the existence of data when parsing JSON. Rails PUT operations return an empty string, which causes this exception.