Guest User

Untitled

a guest
Aug 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. json_object() ->
  2. ?SIZED(S, json_object(S)).
  3. json_object(S) when S =< 0 ->
  4. json_atomic();
  5. json_object(S) ->
  6. frequency([{1, json_object(0)},
  7. {3, ?LAZY(
  8. ?LETSHRINK(
  9. [ObjectSize],
  10. [integer(1, S)],
  11. ?LETSHRINK(
  12. [Object],
  13. [{vector(ObjectSize,
  14. {json_string(),
  15. json_object(S - ObjectSize)})}],
  16. Object
  17. )))}]).
Add Comment
Please, Sign In to add comment