Smart Text to JSON