Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for mixed json parsing #3

Open
dontgitit opened this issue Feb 24, 2017 · 2 comments
Open

add support for mixed json parsing #3

dontgitit opened this issue Feb 24, 2017 · 2 comments

Comments

@dontgitit
Copy link
Contributor

dontgitit commented Feb 24, 2017

for example,

case class Foo(
  hello: String,
  @JsonParse
  world: List[Int]
)

Normally, you would need to submit a payload like this to match Foo

hello=something
world[0]=198
world[1]=897123
world[2]=9

We want to allow:

hello=something
world={198, 897123, 9}

It seems a @JsonParse annotation or something like that could do the trick

@gmethvin
Copy link
Member

idk, why not just make the whole thing json if you're gonna use json?

@dontgitit
Copy link
Contributor Author

this is most useful for things that are already done with forms and have simple fields, but we need to add some more complicated thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants