updated getting options so it only json_decodes if necessary