Hi,
I want to create a „status“ page from a string variable formatted as a JSON value. Using IFTTT a string variable in IPS is updated when an action has been executed. This JSON value contains the values I need, but different actions create different JSON values: Is there some easy method to parse the JSON string variable? Here are some examples of the JSON string variable:
{"key_name_user":"","key_account_email":"","requested_state":"DAY_LOCK","event_type":"STATE_CHANGED_LATCH","value2":"IFTTT","key_name_admin":"IFTTT","value1":"LockID: xxxx, KeyID: x, State: DAY_LOCK","value3":"","key_account_name":"","key_local_id":x,"lock_id":xxxx}
{"key_name_user":"somedoor","key_account_email":"user@gmail.com","requested_state":"NIGHT_LOCK","event_type":"STATE_CHANGED_NIGHT_LOCK","value2":"User","key_name_admin":"User","value1":"LockID: xxxx, KeyID: x, State: NIGHT_LOCK","value3":"user@gmail.com","key_account_name":"somedoor","key_local_id":x,"lock_id":xxxx}
{"go_to_state":"NIGHT_LOCK","key_name_user":"somedoor","key_account_email":"user@gmail.com","event_type":"STATE_CHANGED_NIGHT_LOCK_REMOTE","value2":"User","key_name_admin":"User","value1":"LockID: xxxx, KeyID: x, State: NIGHT_LOCK","value3":"user@gmail.com","key_account_name":"somedoor","key_local_id":x,"lock_id":xxxx}