What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-25 10:40:12
create csv file javascript
$("#download_1").click(function() { var json_pre = '[{"Id":1,"UserName":"Sam Smith"},{"Id":2,"UserName":"Fred Frankly"},{"Id":1,"UserName":"Zachary Zupers"... Add solution -
C# 2021-10-19 18:51:04
oauth2 authentication .net core example
using System.Net.Http; using System.Net.Http.Headers; using System.Security.Claims; using System.Text.Json; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authentication.OAuth; usin... Add solution -
Other 2021-10-19 09:29:10
the request entity's media type 'text/plain' is not supported for this resource
var json = JsonConvert.SerializeObject(body); var content = new StringContent(json); content.Headers.ContentType= new MediaTypeHeaderValue("application/json"); return _client.PostAsync(requestUri, content); https://bartwullems.blogspot.com/2018... Add solution -
Javascript 2021-10-17 00:48:07
javascript recorrer json
// JSON con distintos valores para utilizar en la demo var json = {'valor1': 1, 'valor2': [1, 2, 3, 4], 'valor3': '3'}; // Obteniendo todas las claves del JSON for (var clave in json){ // Controlando que json realmente tenga esa propiedad if (json.h... Add solution -
Other 2021-10-12 16:46:03
check if string is valid json dart
void main() { var jsonString = '{"abc'; var decodeSucceeded = false; try { var decodedJSON = json.decode(jsonString) as Map<String, dynamic>; decodeSucceeded = true; } on FormatException catch (e) { print('The provided strin... Add solution