add basic read-only json api
merged