testing JSON encoding of external_data field --KW