In principle sure, though not on anyones roadmap nowadays. You could contribute such a thing or find a json parser whihc has such failure mode - I'm unaware of any parser which has such failure mode though.
-- Konrad `ktoso` Malawski Akka <http://akka.io> @ Lightbend <http://lightbend.com> On 28 March 2017 at 23:57:05, Alan Burlison ([email protected]) wrote: On 28/03/2017 22:51, Konrad Malawski wrote: > Your unmarshaller (you did not say what you're using), should be configured > to blow up then. The default Akka/HTTP one, namely Spray/JSON. > The spray-json one can not do that. That's unfortunate :-( Is it possible in principle to extend it to reject unrecognised fields, or is it a case of having to switch to a different framework? I'm also using Spray/JSON to implement Akka persistence and I don't want to have 2 JSOn frameworks in the same app, so switching to another JSON framework would not be trivial. Thanks, -- Alan Burlison -- -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
