What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-14 15:25:02
create smart home skill alexa
exports.handler = function (request, context) { if (request.directive.header.namespace === 'Alexa.Discovery' && request.directive.header.name === 'Discover') { log("DEBUG:", "Discover request", JSON.stringify(reque... Add solution -
Javascript 2021-09-13 17:00:02
Working with JSON in Node.js
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=dR--FnRoYh0 */ // Import dependencies const fs = require("fs"); // Load the config const config = require("./config.json&q... Add solution -
Javascript 2021-09-13 13:38:01
overlapping times javascripts html django
var timeList = []; function addTime() { var startTime = document.getElementById("startTime").value; var endTime = document.getElementById("endTime").value; if (validate(startTime, endTime)){ timeList.push({ startTime:... Add solution -
C++ 2021-09-12 12:32:02
jquery ajax post json asp.net core
1234567891011121314151617181920212223 // form ajax with multiple json complex types $('#btnFormAjaxJsonMult... Add solution -
Javascript 2021-09-11 19:57:02
express.bodyparser express 4
//make sure it is in this order npm i body-parser const express = require('express') const bodyParser = require('body-parser') const app = express() // parse application/x-www-form-urlencoded app.use(bodyParser.urlencoded({ extended: false })) // pars... Add solution -
Javascript 2021-09-10 17:11:02
javascript check if json object is valid
//extensive check to make sure object is not of string type and not null function isJson(item) { item = typeof item !== "string" ? JSON.stringify(item) : item; try { item = JSON.parse(item); } catch (e) { ... Add solution