Added helper functions to ease JSON object processing.