JSON string validation method in Helper\Text