spray / spray-json

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

Supports snakecase. #268

Open jkugiya opened 6 years ago

jkugiya commented 6 years ago

Close #170

morpheyesh commented 5 years ago

Hope this will be merged soon!

plokhotnyuk commented 5 years ago

@jrudolph Regexs are so slow...

More simple and efficient functions which can enforce kebab case too are here

jkugiya commented 5 years ago

@jrudolph Regexs are so slow...

Yes, the reason for this implementation is regex's performance. But I can understand regex is easier to maintain. I created another PR(#295). I'll leave it up for either.

jkugiya commented 5 years ago

@plokhotnyuk I also tried your implementation. But some of the behavior is unexpected for me in some corner case.

ex)

It is difficult to judge which is better because there aren't standard specification for this conversion, as far as I know.