Cleaning up JSON literal parsing