Gave the Chunk struct the ability to serialize itself to JSON