Questions tagged [jsontemplate]

JSON Template is a minimal but powerful templating language, currently implemented in both Python and JavaScript.

JSON Template is a minimal but powerful templating language, currently implemented in both Python and JavaScript.

28 questions
3
votes
1 answer

infinite scroll on squarespace get category filter

I am using this code to infinite load a page on squarespace. My problem is the reloading doesn't capture the filtering that I have set up in my url. It cannot seem to 'see' the variables or even the url or categoryFilter in my collection. I've tried…
Jeff Lo
  • 31
  • 3
3
votes
1 answer

what is better with jquerymobile dust or json2html?

what is better with jquerymobile dust or json2html? I'm working with a listview and my data is ported via ajax the application is on jquery mobile i need an easy template to represent the coming data in listview
1
vote
1 answer

Issue migrating from PatternLayout to JsonTemplateLayout, Null or empty MDC values does not appear in log

I have log4j2-spirng.xml with this pattern layout userId is value from MDC. In case it is null it is logged with blank value like…
1
vote
1 answer

Jolt transformation while using IF ELSE map the keys to new keys and also use these replacement for new key value pair

I need to perform a Jolt transformation on the below example json: "treasure": [ { "name": "FOO", "value": 45 }, { "name": "BAR", "value": 20 }, { "name":"FOOBAR", "value":23 ] I need the output to look like: { …
Curios 1
  • 13
  • 1
  • 4
1
vote
2 answers

JavaScript / Dojo template for JSON

Possible Duplicate: Good Javascript template engine to work with JSON I'm searching for a JavaScript / Dojo template to be used with JSON.
Diogo Cardoso
  • 21,637
  • 26
  • 100
  • 138
1
vote
2 answers

Squarespace Events by Month

I’m attempting to create a custom list of events for my Squarespace website. I would like to show the events separated by the month in which they are happening. For example, I will have a header that says “June” and then list all of the events that…
1
vote
2 answers

JSON Template in Lua

I have a JSON object which I would like to templatize in lua. For example: { "type":"email", "version":"1.0", "account":"%emailId%" } I would like to substitute the %emailId% with a list of e-mail ids. Is there a templatization support for…
ssk
  • 9,045
  • 26
  • 96
  • 169
1
vote
1 answer

What Squarespace JSON variables are available in the backend CMS email templates?

I have a site with Squarespace. Squarespace allows you to send different confirmation emails for each type of product using: {.section hasPhysicalProduct} {.section hasServiceProduct} {.section hasDigitalProduct} What I'd like to do is send…
corpico
  • 617
  • 3
  • 16
  • 26
1
vote
2 answers

How to make an if statement with JSONT

How can I check a property for a specific value?? IE: The JSONT version of if(someProperty == someValue){ //Do some stuff }
Mente Gee
  • 51
  • 1
  • 8
0
votes
2 answers

serializing a jquery template form into json using jquery

I have a form for which I use JQUERY templates, as there can be multiple fields for an attribute. For eg. a user can have multiple phone numbers. So, he can add fields dynamically by pressing the option "add one more number". In this way multiple…
Harshit Agarwal
  • 1,345
  • 3
  • 20
  • 27
0
votes
1 answer

Log4j Json Template Layout Config

I am new to log4j logging and I have a scenario where I want to configure log4j to send http post request using JSON template layout for specific body structure. Below is the body format which is required for http request. { "streams": [ …
0
votes
1 answer

Delete azure resource group after 30 days of creation based on tags using azure policy

How can I delete azure resource groups (having tag:delete-after-30-days) after 30 days of creation based on tags using azure policy. So far I came up with this - { "mode": "Indexed", "policyRule": { "if": { "allOf":…
Indrajeet Singh
  • 470
  • 1
  • 6
  • 21
0
votes
0 answers

How to style dangerouslysetinnerhtml content using styled components?

I'm working on a react project with styled components.I'm getting HTML template from json as string. How can I style the same json string using styled component.
0
votes
0 answers

JsonTemplateLayout in Log4j2

How to add a external file location in eventTemplateUri of JsonTemplateLayout instead of classpath ? What does classpath defaults to in this case ?
anshu_anand
  • 69
  • 1
  • 8
0
votes
0 answers

IllegalAccessError in JsonTemplateLayout in log4j2

Error : - [![IllegalAccessError][1]][1] Log4j2.xml :- [![Log4j2 configuration][2]][2] Maven dependencies :- [![pom.xml][3]][3] Code :- [![Controller class][4]][4] TIA [1]: https://i.stack.imgur.com/vvEQv.png [2]:…
anshu_anand
  • 69
  • 1
  • 8
1
2