Skip to content

Not getting proper json format in office module of node.js #3

Description

@dijitha

When i read an excel file using office module of node.js i got the output as
{ cell:
[ { row: 0, col: 0, '$t': 'hello' },
{ row: 0, col: 1, '$t': 'test' } ] }
{ cell: [ { row: 1, col: 0, '$t': 1 }, { row: 1, col: 1, '$t': 2 } ] }
{ cell: [ { row: 2, col: 0, '$t': 2 }, { row: 2, col: 1, '$t': 3 } ] }

But i need the output as correct json format like
[ { hello: '1', test: '2' },
{ hello: '2', test: '3' } ].

Can anyone help in getting this

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions