I am trying to create JSON in Ruby from data coming from a SQL Server table, based off a query. I've worked with Ruby quite a bit and JSON some. But never together.
This is a sample of the JSON I'm trying to create.
Even help with just creating the JSON with the nested arrays and the root element would be helpful.
{
"aaSequences": [
{
"authorIds": [
"ent_fdfdfdfdf_one"
],
"aminoAcids": "aminoAcids_data",
"name": "bbbbb-22",
"schemaId": "ls_jgjgjg",
"registryId": "src_fgfgfgf",
"namingStrategy": "NEW_IDS"
},
{
"authorIds": [
"ent_fdfdfdfdf_two"
],
"aminoAcids": "aminoAcids_data",
"name": "bbbbb-22",
"schemaId": "ls_jgjgjg",
"registryId": "src_fgfgfgf",
"namingStrategy": "NEW_IDS"
}
]
}