skip to Main Content

Json – R Query of a Wikimedia server

I am trying to query the Cameo database. If I use the URL https://cameo.mfa.org/api.php?action=query&pageids=17051&prop=extracts&format=json, then I get, online, a valid output. However, if I use: library(httr) library(jsonlite) base_url <- "https://cameo.mfa.org/api.php" query_param <- list(action = "query", pageids = "17051", format =…

VIEW QUESTION

How to get @odata.etag value from JSON in SQL Server table

Does anybody knows how to get @odata.etag value from a JSON into a SQL Server table? Many thanks! JSON string: { "@odata.context": "https://mycompany.com/Tenant/ODataV4/$metadata#Company('mycompany')/ServiceHeader/$entity", "@odata.etag":"W/"JzQ0O0NLZ0lhMkdDdkw3ZU1PbUx6M1M5V1Y4OUtUZUI5OXZOUCtjM2FRZmQ1N0E9MTswMDsn"", "Document_Type": "Order", "No": "1234", "Customer_No": "1234", "Your_Reference": "", "Payment_Terms_Code": "01", "Name": "Company ABC", "Contact_No": "4567", "Status":…

VIEW QUESTION

Regex to remove Key/Value in a JSON Object

I have a JSON like below: {"queueNumber": "123","field":"name",UserId":[12,12,34],"cur":[{"objectName":"test","uniqueNumber":"123456"}]} I want to remove the key-value pairs if it matches key or value matches the given field. I am using the below regex.It is not removing the key if the type of…

VIEW QUESTION

Javascript – How do I destructure a json file to show all content in a site? There are thousands of objects and chrome crashes every time I load everything at once

There are thousands of objects and chrome crashes every time I load everything at once. btn.addEventListener('click', function(){ event.preventDefault(); async function getData(){ const response=await fetch(url) const data= await response.json(); info(data) } getData(); function info(x){ x.messages.forEach(element => { console.log(element.creator.name+": "+element.text) // console.log(x.element.text)…

VIEW QUESTION
Back To Top
Search