Coder Social home page Coder Social logo

xlsx2json's Introduction

  • 👋 Hi, I'm Luke Yu from zkpass, zero kownledge engineer.

Profile

  • Zero Kownledge Engineer.
  • Good at Math and Cryptography.
  • Deeply engaged in blockchain.
  • Have in-deep research in fields game theory, zero-knowledge, multi-party computation.

Skills

  • C++/Java/Node/Go/Rust/Solidity.
  • Blockchain public chain development.
  • Cryptography.
  • Zero-Knowledge Proof.
  • Multi-Party Computation.
  • Distributed System/Microservices, Containerized.
  • SQL/No-SQL database.
  • Unity3D/OpenGL/WebGL.

Work Experience

  • 2013 - 2016 Softbank as Game Developer.

    • 2D&3D game front and back end development.
    • Development of relevant tools around the game.
    • Game management system development.
    • Internal training.
  • 2017 - 2021 Meya Blockchain Research Institute as Chief Programmer

    • IMCC interactive advertising graphics engine development.
    • Public chain and cross-chain bridge development.
    • Digital assets wallet APP development.
    • Development of a number of DeFi projects.
    • Food traceability blockchain system development.
    • Distributed storage system development.
  • 2021 - 2022 BAF Capital as Chief Programmer

    • Miner deployment, miner node program optimization.
    • BAF mining pool management system development, mining pool tool development.
    • Jamob Polkadot decentralized platform development.
  • 2022 - now If(DAO){ as co-founder

    • research and develop Zero-knowledge proof system.
    • research and develop Multi-Party Computation system.
    • Construction of Minaclub Mina mining pool (Block Producer and Snarker) node.
    • Develop a number of Defi projects.
    • Develop a number of NFT sales and trading platforms.

xlsx2json's People

Contributors

dongdongcpk avatar highkay avatar jiajunfeng avatar nextzeus avatar zk-luke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xlsx2json's Issues

导出来的id#id,不是number类型?

你好,工具很好用,有个问题问下,这个类型是正确的么?

表格如下:

1ae54e63-3620-4287-96c9-1ab718d53a57

导出数据如下,id是string类型。

{
"1": {
"id": "1",
"name": "怪物1",
"lv": 1,
"str": 0,
"agi": 0,
"pow": 0,
"ene": 0,
"hp": 100,
"mp": 0,
"minDam": 10,
"maxDam": 31,
"defence": 11,
"doubleAtt": 0,
"realDam": 1,
"att_interval": 0.2,
"icon_path": "monster/0"
},
"2": {
"id": "2",
"name": "怪物2",
"lv": 2,
"str": 0,
"agi": 0,
"pow": 0,

是否存在数据量限制

excel表格如果行数太多,比如几万行,是不是就会导致解析报错啊?我这边好像遇到这个问题了,有办法解决吗?

Json-》excel

你好,请问这个支不支持复杂json数组的excel展示呢?

#date parsed error

最后一个日期类型,总是被parsed为1970-01-01 08:00:43


ID | 时间戳 | 时间戳
-- | -- | --
id | time | time1#date
1 | 2018/7/9 00:15 | 2018/7/9 00:15

[
  {
    "id": 1,
    "time": "2018-07-09 00:15:00",
    "time1": "1970-01-01 08:00:43"
  }
]

行列导出问题

如果excel只有3行3列,比如之前在5行5列的那个位置添加东西然后又删除了,有可能会导致node-xlsx插件认为这个表格是5行5列,就会导出出错。

合并单元格支持

测试发现对于合并单元格的列,导出后都是null值。比如把3-6列合并,统一命名为“foo”,那么导出后,这样的层级结构会得到null值。有好的解决办法吗

是否支持#id[{}]

Name#id 和 Name#[{}] 单独使用功能都是正常的,但在一起使用的时候会出现问题。

使用Name#id生成的数据是一个对象,如

{
“Human":{},
"Animal":{}
}
//需要生成的是下面这个对象数组
[
{
"Name":“Human"
},
{
"Name":“Animal"
}
]

如果使用#id[{}]可以生成对象数组,但主键列不会出现在生成的json文件里,命令行也会发出警告。

日期类型错误

当excel表中的列如果是日期类型,会导致node-xlsx插件解析出来的时间是utc时间,是特别操蛋的一长串字符串而不是期望的原样字符串,导致没法后续处理。
期待node-xlsx导出日期类型的列的时候不要做改变,直接按照字符串原样导出。

是我的配置有问题吗?

{
"xlsx": {
"head": 1,
"src": "./excel/llt.xlsx",
"dest": "./json",
"arraySeparator": ","
},
"json": {
"uglify": false
}
}

Unable to parse array of strings without quotes

Excellent tool. I had used it a year ago. Now the same XLSX file does not parse due to lack of quotes in the string-array fields. Is there a config-option to make it backward compatible?

./export.sh 
parsing excel: myXLSfile.xlsx
  * sheet:  sheetName
undefined:1
([a,b,c])
  ^
ReferenceError: a is not defined
    at eval (eval at parseJsonObject (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:10:10), <anonymous>:1:3)
    at eval (<anonymous>)
    at parseJsonObject (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:10:10)
    at parseRow (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:236:24)
    at parseSheet (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:137:22)
    at workbook.forEach.sheet (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:332:26)
    at Array.forEach (<anonymous>)
    at Object.parseWorkbook (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:316:14)
    at Object.toJson (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/xlsx-to-json.js:169:34)
    at files.forEach.item (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/index.js:63:14)

有需要C#版导出的或者更多数值强制类型支持的,可以看看我基于此框架修改的版本

项目地址:https://github.com/suxf/xlsx2json
目前发现问题就会修复,使用的是作者最后一次版本更新的源码。
除了原来支持的功能,以及修复了一些小问题。

①此外还更新了c#版本的支持,会自动导出配置以及一个加载单例。

②修改和简化了一些写法,比如不导出!改为~或者留空(等一些简化特性)。

③为了适应c#变量类型增加了基础数值类型比如int,int64,float等等

④对导出工具本身做了指引性配置,简化部署难度。

欢迎使用~✌

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.