Fixed examples and added missing JSON methods.