Download json query
Author: u | 2025-04-24
A simple Go package for querying over JSON, YAML, XML, and CSV data. json query json-query jsonq gojsonq golang-json-query go-json go-json-query golang-json golang-query go-query gojsonquery. Updated ; Go; nahid / jsonq. Star 871. Code Issues Pull requests A PHP query builder for JSON A protip by thedevsaddam about gojsonq, golang-json-query, go-json-query, json-query, jsonq, go json query, and golang json query. Coderwall Ruby Python JavaScript Front-End Tools iOS
JSON Query: a small, flexible, and expandable JSON query
–> Download and Install [SQL Server 2016 RTM], [Service Pack 1], [SSMS 2016] –> New Sample database [WideWorldImporters] for SQL Server 2016 –> New Features in SQL Server 2016: 1. Native JSON support a. Introduction to Native JSON support in SQL Server b. JSON, Export/Convert Table or SQL Query data to JSON format – Part 1 c. Import/Read JSON data to tabular format – Part 2 d. Reading JSON string with nested elements – Part 3 e. Store JSON in Table, OPENJSON, JSON_Value functions – Part 4 f. Passing JSON string as parameter in SP with multiple values – Part 5 2. Temporal Database & Tables a. Temporal Data/Tables – Part 1 b. Temporal, enabling Temporal on existing Table – Part 2 c. Temporal, resolve issues while enabling Temporal on existing Table – Part 3 3. Row Level Security: a. Row Level Security (RLS), Filter Predicates – Part 1 b. Row Level Security (RLS), Block Predicates – Part 2 4. Dynamic Data Masking: – Dynamic Data Masking, Introduction and demo 5. Stretch Database: – Stretch you on-premise Database to Azure SQL Database with StretchDB 6. Live Query Statistics: – Check Live status of Execution plan by using Live Query Stats 8. Query Store: a. Query Store, introduction b. Query Store, enable “Query Store” in a Database 7. Other features: a. TRUNCATE Table at Partition level b. New Feature – STRING_SPLIT() function to split strings c. Now export and import UTF-8 data (BCP, Bulk Insert, OPENROWSET) d. New Feature – COMPRESS and DECOMPRESS functions –> Enhancements in SQL Server 2016: a. ColumnStore Indexes evolution from SQL Server 2012, 2014 to 2016 b. In-memory OLTP improvements from SQL Server 2014 to 2016 c. TempDB Database Files d. new “IF EXISTS” option with ALTER & DROP statements –> My whitepaper published on – Top 8 features of SQL Server 2016 –> My YouTube Videos on SQL Server 2016: –> Join SQL Server 2016 groups on [LinkedIn] and [Facebook] for more updates. A simple Go package for querying over JSON, YAML, XML, and CSV data. json query json-query jsonq gojsonq golang-json-query go-json go-json-query golang-json golang-query go-query gojsonquery. Updated ; Go; nahid / jsonq. Star 871. Code Issues Pull requests A PHP query builder for JSON A protip by thedevsaddam about gojsonq, golang-json-query, go-json-query, json-query, jsonq, go json query, and golang json query. Coderwall Ruby Python JavaScript Front-End Tools iOS You’re building a fantastic Xojo application that needs to connect to the internet, grab data from websites, or send information to web services. This is where HTTP requests come in. They’re the language your application uses to talk to the web.If you’re familiar with the command-line tool curl, you may wonder how to use curl in Xojo effectively. Curl is a powerful tool for making HTTP requests, but it’s not always the most convenient for working within a graphical application like Xojo.That’s where Xojo’s URLConnection class shines! It provides a simple and elegant way to make HTTP requests directly from your Xojo code, making it easy to use curl in Xojo.In this post, you will learn how to adapt common curl commands to Xojo’s URLConnection. Let’s get started.Basic GET Request Using Curl in XojoMeaning: Fetch the content of the specified URL using a GET request.Curl:curl socket As New URLConnectionVar response As String = socket.SendSync("GET", " 30)GET Request with Query ParametersMeaning: Fetch the content of the specified URL with query parameters.Curl:curl " socket As New URLConnectionVar response As String = socket.SendSync("GET", " 30)Or:Var socket As New URLConnection// Define the query parameters using PairVar queryParams() As PairqueryParams.Add("param1" : "value1")queryParams.Add("param2" : "value2")// Construct the URL with query parametersVar baseURL As String = " queryString As String = "?"For Each param As Pair In queryParams queryString = queryString + param.Left + "=" + param.Right + "&"Next// Remove the trailing '&' characterqueryString = queryString.Left(queryString.Length - 1)// Combine base URL and query stringVar fullURL As String = baseURL + queryStringVar response As String = socket.SendSync("GET", fullURL, 30)Adding HeadersMeaning: Send a GET request with a custom header.Curl:curl -H "Content-Type: application/json" socket As New URLConnectionsocket.RequestHeader("Content-Type") = "application/json"Var response As String = socket.SendSync("GET", " 30)Sending JSON Data with POSTMeaning: Send a POST request with JSON data to the specified URL.Curl:curl -L ' ^-H 'Content-Type: application/json' ^-d '{"key1":"value1","key2":"value2"}'Xojo:Var socket As New URLConnectionVar jsonData As String = "{""key1"":""value1"",""key2"":""value2""}"socket.SetRequestContent(jsonData, "application/json")Var response As String = socket.SendSync("POST", " 30)Or:Var socket As New URLConnection// Create a new JSONItemVar json As New JSONItem// Add key-value pairs to the JSONItemjson.Value("key1") = "value1"json.Value("key2") = "value2"socket.SetRequestContent(json.ToString, "application/json")Var response As String = socket.SendSync("POST", " 30)Basic AuthenticationMeaning: Send a GET request with basic authentication.Curl:curl -u username:password socket As New URLConnectionsocket.RequestHeader("Authorization") = "Basic " + EncodeBase64("username:password")Var response As String = socket.SendSync("GET", " 30)Download a FileMeaning: Download a file from the specified URL and save it with the given filename.Curl:curl -o filename socketComments
–> Download and Install [SQL Server 2016 RTM], [Service Pack 1], [SSMS 2016] –> New Sample database [WideWorldImporters] for SQL Server 2016 –> New Features in SQL Server 2016: 1. Native JSON support a. Introduction to Native JSON support in SQL Server b. JSON, Export/Convert Table or SQL Query data to JSON format – Part 1 c. Import/Read JSON data to tabular format – Part 2 d. Reading JSON string with nested elements – Part 3 e. Store JSON in Table, OPENJSON, JSON_Value functions – Part 4 f. Passing JSON string as parameter in SP with multiple values – Part 5 2. Temporal Database & Tables a. Temporal Data/Tables – Part 1 b. Temporal, enabling Temporal on existing Table – Part 2 c. Temporal, resolve issues while enabling Temporal on existing Table – Part 3 3. Row Level Security: a. Row Level Security (RLS), Filter Predicates – Part 1 b. Row Level Security (RLS), Block Predicates – Part 2 4. Dynamic Data Masking: – Dynamic Data Masking, Introduction and demo 5. Stretch Database: – Stretch you on-premise Database to Azure SQL Database with StretchDB 6. Live Query Statistics: – Check Live status of Execution plan by using Live Query Stats 8. Query Store: a. Query Store, introduction b. Query Store, enable “Query Store” in a Database 7. Other features: a. TRUNCATE Table at Partition level b. New Feature – STRING_SPLIT() function to split strings c. Now export and import UTF-8 data (BCP, Bulk Insert, OPENROWSET) d. New Feature – COMPRESS and DECOMPRESS functions –> Enhancements in SQL Server 2016: a. ColumnStore Indexes evolution from SQL Server 2012, 2014 to 2016 b. In-memory OLTP improvements from SQL Server 2014 to 2016 c. TempDB Database Files d. new “IF EXISTS” option with ALTER & DROP statements –> My whitepaper published on – Top 8 features of SQL Server 2016 –> My YouTube Videos on SQL Server 2016: –> Join SQL Server 2016 groups on [LinkedIn] and [Facebook] for more updates.
2025-04-06You’re building a fantastic Xojo application that needs to connect to the internet, grab data from websites, or send information to web services. This is where HTTP requests come in. They’re the language your application uses to talk to the web.If you’re familiar with the command-line tool curl, you may wonder how to use curl in Xojo effectively. Curl is a powerful tool for making HTTP requests, but it’s not always the most convenient for working within a graphical application like Xojo.That’s where Xojo’s URLConnection class shines! It provides a simple and elegant way to make HTTP requests directly from your Xojo code, making it easy to use curl in Xojo.In this post, you will learn how to adapt common curl commands to Xojo’s URLConnection. Let’s get started.Basic GET Request Using Curl in XojoMeaning: Fetch the content of the specified URL using a GET request.Curl:curl socket As New URLConnectionVar response As String = socket.SendSync("GET", " 30)GET Request with Query ParametersMeaning: Fetch the content of the specified URL with query parameters.Curl:curl " socket As New URLConnectionVar response As String = socket.SendSync("GET", " 30)Or:Var socket As New URLConnection// Define the query parameters using PairVar queryParams() As PairqueryParams.Add("param1" : "value1")queryParams.Add("param2" : "value2")// Construct the URL with query parametersVar baseURL As String = " queryString As String = "?"For Each param As Pair In queryParams queryString = queryString + param.Left + "=" + param.Right + "&"Next// Remove the trailing '&' characterqueryString = queryString.Left(queryString.Length - 1)// Combine base URL and query stringVar fullURL As String = baseURL + queryStringVar response As String = socket.SendSync("GET", fullURL, 30)Adding HeadersMeaning: Send a GET request with a custom header.Curl:curl -H "Content-Type: application/json" socket As New URLConnectionsocket.RequestHeader("Content-Type") = "application/json"Var response As String = socket.SendSync("GET", " 30)Sending JSON Data with POSTMeaning: Send a POST request with JSON data to the specified URL.Curl:curl -L ' ^-H 'Content-Type: application/json' ^-d '{"key1":"value1","key2":"value2"}'Xojo:Var socket As New URLConnectionVar jsonData As String = "{""key1"":""value1"",""key2"":""value2""}"socket.SetRequestContent(jsonData, "application/json")Var response As String = socket.SendSync("POST", " 30)Or:Var socket As New URLConnection// Create a new JSONItemVar json As New JSONItem// Add key-value pairs to the JSONItemjson.Value("key1") = "value1"json.Value("key2") = "value2"socket.SetRequestContent(json.ToString, "application/json")Var response As String = socket.SendSync("POST", " 30)Basic AuthenticationMeaning: Send a GET request with basic authentication.Curl:curl -u username:password socket As New URLConnectionsocket.RequestHeader("Authorization") = "Basic " + EncodeBase64("username:password")Var response As String = socket.SendSync("GET", " 30)Download a FileMeaning: Download a file from the specified URL and save it with the given filename.Curl:curl -o filename socket
2025-04-06The project you want an SBOM from.Click the Create SBOM button to download your SBOM in SPDX JSON format.If you do not see a link to generate an SBOM your language version may be too old for us to generate an SBOM.Generate an SBOM (SPDX) with the API/GraphQLBefore you can generate an SBOM on a private project you must authenticate using a JWT. Please follow the steps here to get started.To generate an SBOM from the State Tool, do the following:Open a GraphQL queryUse the query below and replace the information in the “quotes” with your project’s information.The organization and project are case sensitiveIf you choose to not include a commit ID, delete commit_id:“” from the queryIf you don’t want the spdx URL, then just remove its line and keep the json line.Clicking the triangular “play” button in the GraphQL UI will execute the command and return your SBOM in an SPDX format.The example below will return an SBOM in both SPDX JSON and TAG formats. To only return the JSON, delete the spdx(version: “0.1”). To only return TAG, delete json(version:”0.1”).query { project(organization: "ActiveState-Projects", project: "ActiveState-Python-3.10.11") { ... on Project { commit(vcsRef:"8ac973e3-64eb-4f01-9fb2-dc0aa3dc6253") { ... on Commit { attestations { ... on CommitAttestations { spdx(version: "0.1") json(version:"0.1") } } } } } ... on NotFound { message } ... on Error { message } }}To finish, you have to curl:curl -i -X GET "" -H "Authorization: Bearer "Working Public ExampleTo view a public working example, please click here. To view the SBOM, click the “play” button and then open the link that is generated.
2025-04-16Visual Query Builder helps you build MongoDB queries by dragging and dropping fields from the documents in a collection, perfect if you’re new to MongoDB and learning the MongoDB query syntax. Download Studio 3T and try the MongoDB query builder.Open Visual Query Builder – Ctrl + B (⌘+ B)Run Query – Ctrl + R (⌘+ R)Switch to Tree View – Ctrl + Alt + 1 (⌥ + ⌘ + 1) Switch to Table View – Ctrl + Alt + 2 (⌥ + ⌘ + 2) Switch to JSON View – Ctrl + Alt + 3 (⌥ + ⌘ + 3) Visual Query Builder is just one of the ways of querying MongoDB in Studio 3T. Find out about our other tools AI Helper, IntelliShell, SQL Query, and Aggregation Editor in our Knowledge Base article How to Query MongoDB.BasicsVisual Query Builder is part of the Collection Tab, where you can view, query, and edit documents in a collection. You can drag and drop fields into Visual Query Builder to create a MongoDB query, and as you do this, you’ll see Studio 3T building the mongo shell syntax in the Query Bar.To open Visual Query Builder:Button – Click on the Visual Query Builder buttonRight-click – Right-click anywhere in the Result tab and choose Visual Query BuilderShortcut – Press Ctrl + B (⌘+ B)Click-and-drag – Click and drag any cell in the Result tab and Visual Query Builder automatically opensPrefer the mongo shell? Autocomplete queries with IntelliShell instead.Build the MongoDB queryLet’s build a query using Studio 3T’s MongoDB query builder and the Customers collection. You can download the zip file here, then import the JSON file to your MongoDB database.Drag and drop fieldsSelect the target field by clicking on any cell (not the header), then drag the selected field(s) and drop them into Visual Query Builder.In Table View, you can select only one field at a time.In Tree View, you can select multiple fields and drop them into Visual Query Builder. To do this, hold the CTRL key (or the command key) and click the fields.As you build your MongoDB query, you’ll see Studio 3T writing the mongo shell syntax in the Query Bar.Define operators and valuesTo filter the documents in the collection, define the required operators and values in the Query section and choose the fields you want to include in the Projection section.Query sectionThe Query section allows you to add the search conditions for the query. For each condition, you specify the field name, the operator, and the field value.By default, Visual Query Builder uses the $and operator, Match all ($and) to combine multiple conditions where all the conditions must be satisfied for a match.Select Match any ($or) to use the
2025-04-19