Better JSON unpacking.