Added EndOfStream type to JsonTypes. This will rectify the seg faults that have been happening.