public static Attachment json( String content ) {
        return fromText( content, MediaType.JSON_UTF_8 );
    }
Creates a text attachment with the given content with media type application/json.

@param content the content of the attachment
jgiven-core/src/main/java/com/tngtech/jgiven/attachment/Attachment.java