Fulltext results:
- Json - Library @markup:json
- ===== About ===== Library or software that can parse [[json|Json file]] ===== Articles Related ===== {{backlinks>... | text | Directly as text | | Javascript | global JSON object | ES5 introduced a new [[web:javascript:es:global|global]] ''JSON'' object for reading and [[web:javascript:es:object:stringify|writing (stringify)]] the JSON data format. | | Stream, File, Console | [[markup
- Puppeteer - How to pass back and forth a date (or a complex type) to the headless browser via the evaluate function @web:browser
- ect back, you can parse it let dayObjInBrowser = JSON.parse(dayJsonInBrowser); // And pass it back again wit... son); </code> ==== The deserialization ==== === JSON.parse and the reviver function === After receiving a s... n-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse|JSON.parse function]] and a reviver function. The reviver ge... a date. <code javascript> let dayObjFromBrowser = JSON.parse(dayJsonFromBrowser, (key, value) => { // The key
- Javascript - Object @web:javascript:es:object
- ed a reviver</wrap>). <code javascript> var obj = JSON.parse(blueString); var blueObj = Object.assign(new Colo
- Javascript - Dynamic Import (Json) @web:javascript:module
- n ==== <WRAP round important> If you want to load JSON file has object on node, you can just read it and parse it such as: <code javascript> const dataObject = JSON.parse(fs.readFileSync('data/file.json')); </code> </WRAP> Example with: * The whole Json file <code javascript> { "prop": { "id":
- Kafka Connect - Sqlite in Distributed Mode @dit:kafka:connector
- te3 apt-get install jq # An utility often used to parse json </code> ==== Kafka Services Working Directory ... '/etc/kafka-connect-jdbc/source-quickstart-sqlite.json'' <file javascript source-quickstart-sqlite.json> { "name": "test-source-sqlite-jdbc-autoincrement", ... -jdbc/ curl -X POST -H "Content-Type: application/json" --data '@source-quickstart-sqlite.json' http://l
- React Framework - Next.js @web:javascript:next
- ectory is the pages directory. ==== Next Package.json Script ==== <code javascript package.json> { "scripts": { "dev": "next", "build": "next buil... install --save-dev cross-env </code> * Package.json <code javascript package.json> { "scripts": { "dev": "node server.js", "build": "next build",
- Ansible - Want Json Module Type @infra:ansible
- ====== Ansible - Want Json Module Type ====== ===== About ===== Json (or Want Json) is a [[module#type|Module type]]. A non-native module accepts a filename as its only co... -native module needs to: * open the file, (ie a JSON temporary file containing the module’s parameters
- Node - File System @web:javascript:node
- ding a JSON. <code javascript> const dataObject = JSON.parse(fs.readFileSync('data/file.json')); </code> === Write file === In a async with [[https://nodejs.org/di... t> await util.promisify(fs.writeFile)('./dir/file.json', JSON.stringify(object, null, ' ')); </code> === Watch === <code javascript waitForFileExists.js> /**
- Browser - XMLHttpRequest (XHR) API @web:browser
- de javascript> function onLoaded() { var data = JSON.parse(this.responseText); data.items.map(item => ( ... xhRequest.open('get', 'https://gerardnico.com/doc/json/items.json', true); xhRequest.send(); </code> </webcode> ==== Post ==== <webcode name="XhrPost" frame... xhr.setRequestHeader("Content-Type", "application/json"); // How to set a header (must be called after o
- Ansible - Facts (Remote System Env) @infra:ansible
- rectory ending in .fact, * files format can be JSON, INI, or executable files returning JSON Steps: * Create a ''fact'' file <code ini /etc/ansible/fact... or one host. See [[#list]] <code javascript facts.json> { "ansible_facts": { "ansible_all_ip... "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather
- Kafka Connect - Sqlite in Standalone Mode @dit:kafka:connector
- te3 apt-get install jq # An utility often used to parse json </code> ==== Start confluent ==== <code bash> ... b"}} </file> * two records one per line, in the JSON encoding of the Avro records. * Each row is re... ach column is a field in the record. * The [[..:json|JSON]] encoding of Avro encodes the ''strings'' in the format ''{"type": value}'', so we can see that b
- Calcite (Farrago, Optiq) @db:calcite
- ---json { "canonical":"calcite" } --- ====== Calcite (Farrago, Optiq) ====== ===== About ===== Cal... Catalog]]: metadata and namespace * Sql Parser: Parse the SQL string to a SQLNode - abstract syntax tre... ava> jdbc:calcite:model=target/test-classes/model.json // or jdbc:calcite:schemaFactory=org.apache.calci... ordinatorUrl=http://localhost:8081 </code> * A JSON model of a simple Calcite schema. <code javascrip
- Web Page Metadata - Article Page Type @web:metadata
- acklinks>.}} ===== Metadata ===== [[web:metadata:json-ld]] The example comes from this page [[https://d... nu <code javascript> <script type="application/ld+json"> { "@context": "https://schema.org", "@type"... = Documentation / Reference ===== * https://www.parse.ly/help/integration/jsonld#explanation-of-require
- Javascript Module - Import (Es Module) @web:javascript:module
- (url, callback) { getJSON(url, data => callback(JSON.parse(data))); } </code> * Import <code javascript> i