NestedText Serializer

A challenge by MichalMarsalek avatar MichalMarsalek

Description

Given a JSON document convert it to a NestedText document. To be precise, your output should:

  1. use inline items only for empty structures: [], {}
  2. use rest of line strings where possible
  3. use key items only where necessary
  4. use 4 spaces for indentation

Leaderboard

Author Score
#1 Natanaelel avatar Natanaelel 363
#2 dmrichwa avatar dmrichwa 419
#3 MichalMarsalek avatar MichalMarsalek 430
#4 MeWhenI avatar MeWhenI 750
#5 mousetail avatar mousetail 923
#6 XenThe avatar XenThe 1088
You must be logged in to submit a solution.