Added convenience functions for parsing JSON values.