When binary data in found on decoding, decoding is interrupted and the JSONin the output buffer is truncated.
increasing the index allow the decoding to continue, obviously the binary data isn't decoded yet.
Tested on elasticsearch state file with following code to remove extra header and footer
import json
b = open("state-181.st", 'rb').read()
x = b[18:-16]
d = pysmile.decode(x)
print json.dumps(d, indent=4)
When binary data in found on decoding, decoding is interrupted and the JSONin the output buffer is truncated. increasing the index allow the decoding to continue, obviously the binary data isn't decoded yet.
Tested on elasticsearch state file with following code to remove extra header and footer
import json b = open("state-181.st", 'rb').read() x = b[18:-16] d = pysmile.decode(x) print json.dumps(d, indent=4)