Fixed segfault if parsing data that is missing an opening brace.
Throws appropriate error if missing object value.
Handles failed integer conversions.