[#43] Proposed fix

- Ensures that we can use either native PHP code returned by the security
  checker, or JSON.
Merge branch 'hotfix/43'

Close #43