Fix name in license
Terminate callback when invalid json string accepted
Fix manipulation with chunks