Convert ext/json to HNI

Part of #1480