Bad reverse order

This is pretty sad error. Not sure how this got reversed.

Check if string and parse to JSON if so