Amazon Ion is a richly-typed, self-describing, hierarchical data serialization format offering interchangeable binary and text representations. The text format (a superset of JSON) is easy to read and author, supporting rapid prototyping. The binary representation is efficient to store, transmit, and skip-scan parse.
Questions tagged [amazon-ion]
17 questions
5
votes
2 answers
Extracting "data" from Amazon Ion file
Has anyone worked with the Amazon Quantum Ledger Database (QLDB) Amazon ion files? If so, do you know how to extract the "data" part to formulate tables? Maybe use python to scrape the data?
I am trying to get the "data" information from these files…

Nosiphiwe Duma
- 51
- 1
- 3
2
votes
1 answer
How can I format Amazon Ions to valid JSON in Python?
In the example code for the python driver for the Amazon QLDB Ledger database is a function which prints Amazon Ion objects:
def print_result(cursor):
"""
Pretty print the result set. Returns the number of documents in the result set.
:type…

Jörg Gesslbauer
- 21
- 2
2
votes
2 answers
How to convert Amazon Ion file to JSON format using Python?
I want to convert Amazon Ion file from S3 bucket to JSON format.
I am trying following code
import json
import boto3
s3 = boto3.resource('s3')
bucket = s3.Bucket('some/path/')
ion_body =…

Mohan Kumar
- 63
- 1
- 8
1
vote
1 answer
ion.Timestamp to json time
I saw that if I store QLDB ion.Timestamp, it cannot be converted directly to json time string (YYYY-MM-DDThh:mm:ss.sssZ).
for example:
// result of querying data object from histories(table, from, to)
var val map[string]interface{}
err :=…

Kokizzu
- 24,974
- 37
- 137
- 233
1
vote
1 answer
How to convert Amazon QLDB IonStruct to Json in java?
I have written a QLDB query to fetch a document by document ID So that I want to convert this document to a JSON response and pass it through the rest end point.
qldbDriver.QldbDriver().execute(txn ->{
IonSystem ionSys =…

Dasun
- 602
- 1
- 11
- 34
1
vote
0 answers
Is there a blocking ArrayBuffer that is filled by a worker thread?
I want to use ion-js but it a sync library over strings or ArrayBuffers, not a Stream or ReadableStream.
I thought to use worker_threads, SharedArrayBuffer, and Atomics to create a ArrayBuffer that is filled in a background thread and blocks waiting…

everett1992
- 2,351
- 3
- 27
- 38
1
vote
0 answers
Precision loss in JSON to ION conversion for numeric values containing exponents
As per ION Cookbook, these are rules for converting numeric values in JSON to ION:
1. Numeric values without a decimal point are interpreted as Ion integers
2. Numeric values with a decimal point but without an exponent are interpreted as Ion…

Aditya Abhas
- 174
- 11
0
votes
2 answers
Import items to DynamoDB from S3, what is the correct ion format?
I want to import many items to DynamoDB from a ion file, there is an example of importing only one item in official document. But how to import many items at once ?
I have tried:
$ion_1_0{
Item: [
{
pk:1d0,
sk:1d0,
c1:…

zhanghao
- 23
- 3
0
votes
1 answer
How to convert amazon ion to json data using java
I'm working with amazon ion data, stored in file. I need to convert it to Json data. Is there any libraries available in Java?
Or any another type of data format close to Json?
Task I'm doing
I have fetched the data from dynamoDB, which generated…

geekynoob
- 1
- 1
0
votes
1 answer
How to convert Amazon Ion object to JSON object in Go Lang?
I'm looking for a way to convert the Amazon Ion object to JSON in Go Lang.
This problem came while I was implementing a DAO layer for Amazon QLDB. What I've done so far is using a Go Struct with both json and ion aliases as follows.
type Passport…

Chamin Wickramarathna
- 1,672
- 2
- 20
- 34
0
votes
1 answer
Retain type annotation while converting from ION to JSON
I have a source from where I am getting serialized ION data with type annotated on polymorphic type fields. While converting to JSON using below code, it is losing type annotation. Is there any way to get ion type annotation as field in converted…

Harshit
- 115
- 1
- 6
0
votes
1 answer
InvalidDefinitionException: Direct self-reference leading to cycle. Trying to serialize a class with a member as IonValue to IonValue
I have an object which has one of its member as IonValue. I am trying serialize the entire object to IonValue and I'm getting InvalidDefinitionException.
Serialization code which throws the Exception :…

Vishwaram Sankaran
- 357
- 2
- 11
0
votes
1 answer
How to fetch all records based on year in Amazon QLDB
I have a requirement to fetch all records from an amazon QLDB based on the given year.
Here is my data inside the Revenues Table.
{
ownerId: "u102john2021",
transactionId: "tran010101010101",
timeStamp: 2021-06-11T19:31:31.000Z
}
{
ownerId:…

Dasun
- 602
- 1
- 11
- 34
0
votes
2 answers
How do I write a Java list to Amazon Ion writer?
Has anyone worked with Amazon Ion? (https://amzn.github.io/ion-docs/guides/cookbook.html)
I have to write a doc with IonWriter, the problem being that the schema needs something like this:
{
name: "schemaName",
valid: [a, b, c]
}
but I am unable…

sudipt dabral
- 1,335
- 2
- 9
- 17
0
votes
1 answer
Laravel QLDB Fetch data in plain text, how?
I have stored data into amazon QLDB using AWS console but I want to fetch this data into my application using aws-sdk-php-laravel.
My code:
public function index(){
$client = AWS::createClient('qldb-session');
$result=…

Malik Hanzala
- 127
- 1
- 6