Abstracted JSON reading.