Encodes all mappings added to this builder as a json string.
String toJson(String fileUrl) => jsonEncode(build(fileUrl));