Api does not fail on bad JSON
The Rudder API does not fail when you give it a bad formatted JSON.
The result is that we are thinking it's not a JSON request, and try to parse it as "normal" -d parameters, and don't find anything relevant, so we don't change anything.
This make testing and undertanding API usage extremelly infuriating.
#1 Updated by François ARMAND about 4 years ago
From a technical point of view, we are using lift JsonPost that takes in charge to checking if the parameter is valid json, and is not executed if not.
We should certainly use JsonReq like in http://exploring.liftweb.net/master/index-15.html, and check by ourselve if the JSON is correct.