Added an optional .json extension for the API layer methods.