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

Getting empty table in output for the simple JSON (DynamoDB query result) #11

Open
git-hemant opened this issue Apr 1, 2013 · 2 comments

Comments

@git-hemant
Copy link

I am trying JSON to html on the following JSON, and I am receiving empty table in the output. Any idea what I maybe missing here?

var jsonData = {"ConsumedCapacityUnits":0.5,"Item":{"FirstName":{"S":"Joe"},"LastName":{"S":"Smith"}}};
var htmlOutput = ConvertJsonToTable(jsonData); //Empty html table is returned here.

@afshinm
Copy link
Owner

afshinm commented Apr 6, 2013

Try using complete method parameters like this:

var jsonHtmlTable = ConvertJsonToTable(objectArray, 'jsonTable', null, 'Download');

Let me know if this solution fixed your problem.

@jerry2605
Copy link

The jsonData should be an Array, otherwise will give a empty table. But why jsonData need to be an Array? Weird.

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

No branches or pull requests

3 participants