fix compilation issues with the latest scala mod snapshot

adjustments to the json api changes