json: check for known $ key, otherwise leave it.