spray / spray-json

A lightweight, clean and simple JSON implementation in Scala
Apache License 2.0
972 stars 190 forks source link

Field Name Custom RootJsonFormat #161

Open lenzenc opened 9 years ago

lenzenc commented 9 years ago

I must be missing something simple here...but if I create a custom RootJsonFormat for a specific "type/generic" how do I get the field name associated to a value during the read method?

I have a simple custom RootJsonFormat for Enumeration types and want to use the field name in some error handling during "read".