add category methods for easier use.

also fix a dictionaryFromJsonString typo