Fixed JSON reading