fix JSON.parse for summerize (#445)
* fix JSON.parse for summerize
When serving with TGI, summerize calls this function and it errors with `SyntaxError: Unexpected token d in JSON at position 0`
This PR fixes the problem and keeps existing behaviour.
* fix types
---------
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>