Use helper to determine json
Merge pull request #4 from dmcguinness/feature/discern-if-json

Use helper to determine json