skip to Main Content

Unable to create Regex for JSON value

I have JSON for which I sometimes got some alphanumeric name in one key value name and sometimes it is null like below. {"name":"77Watcher"} {"name":null} I have to validate the data I am using like below. {"name":"${json-unit.matches:^([A-Za-z0-9]+|null)$}"} But getting Matcher…

VIEW QUESTION

Javascript – how to optimize fetching data from JSON

Is there any solutions of fetching data more fast and determine data length without loading all JSON data. Here is code const url = "https://jsonplaceholder.typicode.com/comments"; const [data, setData] = useState([]); const [colorScheme, setColorScheme] = useState(true); const [loader, setLoader] = useState(true);…

VIEW QUESTION
Back To Top
Search