Organize exceptions and throw one if json is not properly formed