Update to new Julia idioms and JSON API