Documentation
¶
Overview ¶
Package jsonshared holds value coercion helpers shared by the ndjson and jsonarray packages.
Index ¶
Constants ¶
const SetArrayDelimiter = "|"
SetArrayDelimiter is the delimiter ValueToString uses when joining the elements of a JSON array cell into a string. Mirrors the default delimiter used by the import-side set inference probe.
Variables ¶
This section is empty.
Functions ¶
func CoerceValue ¶
CoerceValue attempts to convert string values to native JSON types (number, boolean, null) for cleaner JSON output.
func ValueToString ¶
ValueToString converts a JSON value to its string representation for the tabular interface. Arrays of scalars are pipe-joined so downstream set-type inference can detect them by the standard delimited-cell heuristic; arrays containing objects fall back to the verbose Go-format representation so the inference path will not misclassify them as set fields.
Types ¶
This section is empty.