Fix some upstream API changes in JSON and julia