Customizing JSON parser and stringifier

September 11, 2019
Customizing JSON parser and stringifier

I have always wanted JSON.parse and JSON.stringify to deal with custom objects, such as Date and Set.

BTW, I have successfully done so in two languages, Python and JavaScript (TypeScript).

千字文 - 2/9

September 3, 2019

// nuxt

.w-100.mt-3
  h3.text-center 化被草木,賴及萬方。
.w-100
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/21270.gif" )
    figcaption.text-center hua4
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/34987.gif" )
    figcaption.text-center bei4
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/33609.gif" )
    figcaption.text-center cao3
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/26408.gif" )
    figcaption.text-center mu4
.w-100
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/36084.gif" )
    figcaption.text-center lai4
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/21450.gif" )
    figcaption.text-center ji2
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/33836.gif" )
    figcaption.text-center wan4
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/26041.gif" )
    figcaption.text-center fang1

千字文 - 2/8

September 2, 2019

// nuxt

.w-100.mt-3
  h3.text-center 鳴鳳在竹,白駒食場。
.w-100
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/40180.gif" )
    figcaption.text-center ming2
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/40179.gif" )
    figcaption.text-center feng4
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/22312.gif" )
    figcaption.text-center zai4
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/31481.gif" )
    figcaption.text-center zhu2
.w-100
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/30333.gif" )
    figcaption.text-center bai2
  figure.d-inline-block
    .hanzi-img 駒
    figcaption.text-center ju1
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/39135.gif" )
    figcaption.text-center shi2
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/22580.gif" )
    figcaption.text-center chang2

千字文 - 2/7

September 1, 2019

// nuxt

.w-100.mt-3
  h3.text-center 遐邇一體,率賓歸王。
.w-100
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/36944.gif" )
    figcaption.text-center xia2
  figure.d-inline-block
    .hanzi-img 邇
    figcaption.text-center er3
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/19968.gif" )
    figcaption.text-center yi1
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/39636.gif" )
    figcaption.text-center ti3
.w-100
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/29575.gif" )
    figcaption.text-center lu:4
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/36051.gif" )
    figcaption.text-center bin1
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/27512.gif" )
    figcaption.text-center gui1
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/29579.gif" )
    figcaption.text-center wang2

千字文 - 2/6

August 30, 2019

// nuxt

.w-100.mt-3
  h3.text-center 愛育黎首,臣伏戎羌。
.w-100
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/24859.gif" )
    figcaption.text-center ai4
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/32946.gif" )
    figcaption.text-center yu4
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/40654.gif" )
    figcaption.text-center li2
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/39318.gif" )
    figcaption.text-center shou3
.w-100
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/33251.gif" )
    figcaption.text-center chen2
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/20239.gif" )
    figcaption.text-center fu2
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/25102.gif" )
    figcaption.text-center rong2
  figure.d-inline-block
    img.hanzi-img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/32652.gif" )
    figcaption.text-center qiang1