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

couchbeam_ejson decode broken for nested map values #123

Open
iambumblehead opened this issue Jan 1, 2015 · 1 comment
Open

couchbeam_ejson decode broken for nested map values #123

iambumblehead opened this issue Jan 1, 2015 · 1 comment

Comments

@iambumblehead
Copy link

> couchbeam_ejson:decode(#{<<"map">> => #{"nestedmap" => "val"}}).
** exception throw: {invalid_json,badarg}
     in function  couchbeam_ejson:decode/1 (src/couchbeam_ejson.erl, line 41)

I use this file as a work-around:
https://github.com/iambumblehead/childmaps/blob/master/src/childmaps.erl

The problem manifests for me when trying to persist map data. The error is shown and data is not persisted unless all maps are converted to lists first.

@benoitc
Copy link
Owner

benoitc commented Jan 2, 2015

couchbeam does not yet support maps but only proplists unfortunately. This is planned for the next releae which should happen sometimes this month.

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