properly scope JSON parser in layer presenter