Skip to content

Instantly share code, notes, and snippets.

View ntoporcov's full-sized avatar
👋

Nic Toporcov ntoporcov

👋
View GitHub Profile
{
"commands": {
"command": [
{
"name": "cancelAlert",
"description": "Cancel a vehicle alert (honk horns/flash lights).",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/cancelAlert",
"isPrivSessionRequired": "false"
},
{
@ruudud
ruudud / example.ftl
Created January 18, 2016 13:59
Freemarker JSON dump
<#assign foo><@objectToJson object=data.myobj /></#assign>
${foo?html}
<#macro objectToJson object>
<@compress single_line=true>
<#if object?is_hash || object?is_hash_ex>
<#assign first="true">
{
<#list object?keys as key>
<#if first="false">,</#if>