blockjoin would occur between all individual items within a block, but not before the start or after the end.
layerjoin would occur between all individual blocks within a layer, but not before the start or after the end.
The one sticking point with json output making invalid json was a trailing comma. after the blocks. This would allow that generic element to be covered. This is how ",".join() works in python, hence the analogy. The code here could then produce absolutely valid json.
blockjoin would occur between all individual items within a block, but not before the start or after the end.
layerjoin would occur between all individual blocks within a layer, but not before the start or after the end.
The one sticking point with json output making invalid json was a trailing comma. after the blocks. This would allow that generic element to be covered. This is how
",".join()
works in python, hence the analogy. The code here could then produce absolutely valid json.