Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
object_pairs(obj) returns array of object that describes the obj's field and value of the object.
object_add_fields(obj, arr-of-obj) takes as array of objects, arr-of-obj, that describe a field name and field value and add those to obj as field-name:field-value pair.
There is mismatch in naming convention with respect to object-pairs output and object-add-fields. object_pairs uses name, value as labels for output while object_add_fields uses field_name and field_value. Due to this extra processing is required to convert output of object_pairs so that it be passed to object_add_pairs.