Rough implementation of JSON example