Added error reporting and simplest json parsers