Skip to main content
100%

See examples for GLib libsoup at http://bobthegnome.blogspot.de/2015/11/accessing-json-webservice-using-libsoup.html

✓ Published0🌍 Public
HHoffmannP
Last edited Mar 23, 2016
Created on Mar 23, 2016

This example demonstrates how to fetch and parse JSON data from a web service using GLib’s libsoup and Json libraries. The code sends an HTTP GET request to the Ubuntu reviews API, checks the response status, and then parses the returned array of objects. For each object, it extracts the `package_name` and `ratings_total` fields, printing them to the console. The example highlights synchronous network requests and JSON parsing without a graphical visualization component.

AI-generated description

Similar vizzes