Move JSON Helper method to before block