Improve line offset accuracy for JSON debugging.
Choke on unrecognized JSON objects, and give slightly better errors.