title: Mysql 5.7 native json support - control keys order in json_insert function
body: <p>I am facing issues with json key ordering while inserting using json_insert function. </p>
  
  <p>I have the sorted records as below</p>
  
  <p>"AIR", "AIR Express"</p>
  
  <p>"CFR", "Cost and Freight"</p>
  
  <p>"FH", "Free house"</p>
  
  <p>"UN", "United Nations"</p>
  
  <p>"UPS", "United Parcel Service"</p>
  
  <p>After converting the above records into json using json_insert function, I am seeing the results as below</p>
  
  <p>{"FH":"Free house", "UN": "United Nations", "AIR": "AIR Express", "CFR": "Cost and Freight", "UPS": "United Parcel Service"}</p>
  
  <p>but I want the json to maintain the keys in the order I am inserting. Though I could sense that it is trying to maintain the order based on the character length of keys. But how can I get rid to get the keys aligned in the order. </p>