Comments (3)
Okay, after much debugging, I've found out that you can specify the type as you do with Java, this is just not documented behavior for Javascript. You need application/json
as second parameter to S()
for this to work.
So, this will not work:
S('true');
And this will work:
S('true', 'application/json');
from camunda-spin.
There still is something strange going on:
S('"test"', 'application/json');
is still returning "test"
(with the quotes). I would expect that camunda-spin removes the quotes since it is part of the definition for json to indicate that it is a string?
from camunda-spin.
It works!
Thanks.
from camunda-spin.
Related Issues (16)
- Two packages for the same class ObjectMapper HOT 1
- JDK 16 incompatibilities HOT 2
- java.lang.NoClassDefFoundError: Could not initialize class org.camunda.spin.SpinFactory
- SPIN/DOM-XML-01004 Parsing input into DOM document.
- SpinJsonNode.lastIndexOf() does not work as documented when object is not found HOT 1
- Spin ignores Jackson annotations HOT 1
- SPIN/DOM-XML-01035 - SpinXmlElement.elementList() fails on empty xml list HOT 1
- Integration with groovy JsonSlurper
- UTF-8 BOM in xml response causes SPIN-01004 No matching data format detected HOT 1
- mapping XML to POJO when elements are fully namespaced HOT 1
- Update json-path dependency HOT 1
- spin-core imports JUnit packages in its MANIFEST HOT 5
- [BUG] NullPointerException when trying to return variables HOT 1
- Jackson version HOT 3
- [CAM-12041] SPIN: De-serialization of Lists works but Collections and Maps are not implemented. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camunda-spin.