Printing type of JSON encoding through 'encvalue' is not set
Submitted by Botond Baranyi
Assigned to Botond Baranyi
Link to original bug (#509146)
Description
When using encvalue on a type with JSON encoding, the printing type (compact printing or pretty printing) is not specified to the codec, and the resulting JSON document may be compact or pretty at random.
This is because the Boolean argument of the 'encode' function is not set when generating code for an 'encvalue' expression, so the JSON codec just reads whatever is in the memory.
The printing when using 'encvalue' should be compact.