Convert local icons to JSON to send to the server