I have attempted a few different techniques to get my desired output.
1.) Reader->AttributeExposer->JSONTemplater
2.) Reader->AttributeExposer->ListConcatenator->JSONTemplater
3.) Reader->AttributeExposer->JSON Writer
4.) Reader->AttributeExposer->ListKeyValuePairExtractor->
5.) Reader->AttributeExposer->ListExploder->JSONTemplater
6.) Others
I am working with values such as:
objid | fme_attrib_info{}.field_name | fme_attrib_info{}.field_value |
-------+--------------------------------------+--------------------------------------|
1 | SERIAL_NUM | 12345 |
2 | TYPE | SOME_TYPE |
My desired output would be as follows:
{
"SERIAL_NUM": "123456",
"TYPE": "SOMETYPE
}
I've used the tutorial on site here for extracting attributes from CAD blocks. Now, I would like to take these attributes and make a json payload per unique block to be written to a database. How might I go about doing something like that?
Thanks!