What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-31 03:57:19
Manually Parsing Plain text in Node.js
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=fy2RF9JR1BI */ // Import dependencies const fs = require("fs"); // Read the text file and split it on new lines const lines = f... Add solution -
Javascript 2022-01-30 20:45:41
classic asp get json from file
Dim objSrvHTTP Set objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.6.0") objSrvHTTP.open "GET", "https://example.com/outputJson.php", false objSrvHTTP.send Response.ContentType = "text/html" Respon... Add solution -
Other 2022-01-30 18:41:36
json parse java
import org.json.*; String jsonString = ... ; //assign your JSON String here JSONObject obj = new JSONObject(jsonString); String pageName = obj.getJSONObject("pageInfo").getString("pageName"); JSONArray arr = obj.getJSONArray("po... Add solution -
Javascript 2022-01-30 12:25:37
how to use json schema faker
import { schema } from './mockDataSchema'; import chalk from 'chalk'; const {resolve, extend} = require('json-schema-faker'); const fs = require('fs'); extend('faker', () => require('faker')); resolve(schema).then(sample => { console.log(... Add solution -
TypeScript 2022-01-29 10:47:31
how to Store Objects in HTML5 localStorage
var testObject = { 'one': 1, 'two': 2, 'three': 3 }; // Put the object into storage localStorage.setItem('testObject', JSON.stringify(testObject)); // Retrieve the object from storage var retrievedObject = localStorage.getItem('testObject'); console.lo... Add solution