Questions tagged [sjson]

Scala Json with capabilities for Scala Object Serialization

debasishg/sjson

5 questions
3
votes
1 answer

Convert table into JSON per column value in SQL Server 2016

I have the following table: CREATE TABLE #Temp ( customerId INT , storeCity VARCHAR(50) , transactionDate VARCHAR(100) , TransactionDescription VARCHAR(200) , Amount DECIMAL(18, 2) ) INSERT INTO #Temp (customerId, storeCity,…
Liv
  • 101
  • 2
  • 7
1
vote
1 answer

Golang SJSON Dynamic JSON

I am using sjson in my golang project. I want to set some key-value pairs in my project. I have an unstructured dynamic object. So I can not know the path. It is like following: { "temp1": { "temp2": { "password": "123456", …
Latif Uluman
  • 257
  • 3
  • 13
1
vote
1 answer

Weird scala snippet in sjson (macro?)

I was taking a look at the source code of sjson when I discovered this weird piece of code: <#list 2..22 as i> <#assign typeParams><#list 1..i as j>T${j}<#if i !=j>, def asProduct${i}[S, ${typeParams}](<#list 1..i as…
Jorge
  • 784
  • 4
  • 17
0
votes
3 answers

Duplicate JSON element in row_to_json() with self-join

This is a follow-up to this excellent Q&A: 13227142. I almost have to do the same thing (with the constraint of PostgreSQL 9.2) but I'm using only one table. Therefore the query uses a self-join (in order to produce the correct JSON format) which…
Markus L
  • 932
  • 2
  • 20
  • 38
0
votes
2 answers

scala sbt with pk11 or steps

I am quite frustrated with sbt and pk11/steps (Why are these things never work out of the box for me?) I am just trying to run "jetty-run", but i got so many dependency errors, it's not fun anymore. I am stuck with unresolved dependencies for sjson…
Lydon Ch
  • 8,637
  • 20
  • 79
  • 132