parse_package_json

Function parse_package_json 

Source
pub fn parse_package_json(content: &str) -> Result<Package>
Expand description

Parse the full package.json structure.

§Arguments

  • content - The raw JSON content

§Errors

Returns an error if the JSON is malformed.