Use JSON for s3 metadata encode/decode