Added approximate implementation of json I/O functionality for primitive types.