How to re-order JSON in BaseX for conversion to CSV?
问题 I have JSON data which is just slightly backwards in that the "name" key should be first. The desired output as CSV : people alice,z10,y9,x7,atrib6 sue,home5,cell4 joe,phone3,phone2,phone1 It only matters that the "name" for the CSV is first, the rest of the order is arbitrary and meaningless. Through the BaseX GUI I can export this data as: ,z10,y9,x7,atrib6,alice home5,cell4,sue phone3,phone2,phone1,joe people by selecting CSV , although that leading comma looks odd. However, this is very