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.
Updated by François ARMAND over 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.